DonEros

Untitled

Jun 20th, 2022
481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. user = bot.find_elements(By.XPATH, "//div[starts-with(@class,'member') and contains(@class, 'container') and @index]")
  2.  
  3.     for member in user:
  4.  
  5.         try:
  6.             member.click()
  7.             time.sleep(5)
  8.             message = bot.find_element(By.XPATH, '//body[1]/div[1]/div[2]/div[1]/div[3]/div[1]/div[1]/div[1]/div[5]/div[1]/input[1]')
  9.             time.sleep(5)
  10.             message.send_keys('Automated' + Keys.ENTER)
  11.             time.sleep(5)
  12.             bot.get('https://discord.com/channels/982777146256818207/986367081496862760') #the page refreshes
  13.             time.sleep(10)
  14.         except NoSuchElementException:
  15.             skip
Advertisement
Add Comment
Please, Sign In to add comment