Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from selenium import webdriver
- from selenium.webdriver.common.by import By
- from selenium.webdriver.common.keys import Keys
- import time
- driver = webdriver.Chrome('chromedriver.exe')
- driver.get('https://web.whatsapp.com')
- time.sleep(60)
- print('Complete')
- print('Complete')
- print('Complete')
- print('Complete')
- chat = driver.find_element(By.XPATH, r'//*[@id="main"]/footer/div[1]/div/span[2]/div/div[2]/div[1]/div/div[1]')
- def send(text):
- chat.click()
- chat.send_keys(text)
- chat.send_keys(Keys.ENTER)
- time.sleep(0.01)
- while (True):
- send("GAYmers")
- time.sleep(100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement