I'm currently trying to build a bot to automatically vote on google forms. Problem is, My bot can't click the submit button. It clicks on the button to select the vote, but not the submit button. No error occurs, the button simply doesn't get clicked.
Here is my current code:
from selenium.webdriver.common import action_chains
from selenium.webdriver.common.action_chains import ActionChains
import time
PATH = "C:\Program Files (x86)\chromedriver.exe"
driver = webdriver.Chrome(PATH)
driver.get("{not posting link for privacy}")
time.sleep(5)
vote = driver.find_element_by_id("i92")
submit = driver.find_element_by_xpath('//*[@id="mG61Hd"]/div[2]/div/div[3]/div/div/div/span/span')
actions = ActionChains(driver)
actions.click(vote)
actions.click(submit)
actions.perform()
print('submit' + str(submit))
Any help is appreciated!