How to click on a username within web.whatsapp.com using Selenium and Python
问题 The bot is supposed to send message on whatsApp WEB but unfortunately is stopping and giving error when asked find the user through X-path. from selenium import webdriver from selenium.webdriver.common.keys import Keys import time driver=webdriver.Chrome(executable_path="C:\drivers\chromedriver.exe") driver.get("https://web.whatsapp.com/") time.sleep(5) name= input("Enter name") input("Enter anything after scanning") time.sleep(2) user=driver.find_element_by_xpath("//span[@title='{}']".format