import pyautogui import time import pyperclip as pc from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By #Point(x=506, y=627) driver = webdriver.Chrome('C:\\Users\\Emre\\Desktop\\chromedriver.exe') driver.get("https://web.whatsapp.com") wait = WebDriverWait(driver,600) driver.maximize_window() input("QR Kodu bekle") grup_arama= driver.find_element_by_xpath('//*[@id="side"]/div[1]/div/label/div/div[2]') grup_arama.click() grup_arama.send_keys("bot deneme" + Keys.ENTER) isim = "bot deneme" grup = driver.find_element_by_xpath('//span[@title = "{}"]'.format(isim)) grup.click() box = driver.find_element_by_xpath('//*[@id="main"]/footer/div[1]/div[2]/div/div[2]') box.send_keys("Bu bir deneme mesajıdır ve python üzerinden yazıldı" + Keys.ENTER) time.sleep(5) pyautogui.click(1341,91) time.sleep(10) pyautogui.click(504,651) pyautogui.doubleClick(504,651) pyautogui.hotkey('ctrl','c') gelen=pc.paste() print(gelen) if gelen == "merhaba": print("botum Çalıştı :D") isim = "bot deneme" grup = driver.find_element_by_xpath('//span[@title = "{}"]'.format(isim)) grup.click() box = driver.find_element_by_xpath('//*[@id="main"]/footer/div[1]/div[2]/div/div[2]') box.send_keys("merhaba"+Keys.ENTER) box.send_keys("botum Çalıştı :D" + Keys.ENTER)