python auto click on website code example
Example 1: auto clicker in python
import pyautogui
import time
def click():
time.sleep(0.5)
pyautogui.click()
def main():
for i in range(10):#you can set how much times you have to click in range(no. of times to click)
click()
main()
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()