Hello, I trying to do a script that open and push on a button automatically when run. As exemple I tried to open google.com and push on "google search automatically) but it doesnt work. Below is my code
import time import webbrowser from selenium import webdriver from selenium.webdriver.common.by import By from webdriver_manager.chrome import ChromeDriverManager driver = webdriver.Chrome() url = "https://www.google.com/" driver.get(url) button = driver.find_element_by_xpath(//*[@id="L2AGLb"]/div) clicking on the button button.click()