auto click in python code example
Example 1: python auto clicker
#you need to install pyautogui like this:
#py.exe -m pip install pyautogui
#then...
import pyautogui,time
while True:
pyautogui.click(100,100)
time.sleep(0.5)
Example 2: python autoclick website
def click_me(string):
driver.find_element_by_xpath("//h3/a[@class='co-product__anchor' and contains(@title, '%s')]//following::button[1]" % (string)).click()