Good afternoon everyone, I am new to doing Web Scraping in Python, I would appreciate it if you could help me solve this problem that is occurring to me when clicking on a button (I have been able to do it in others), below is my code:
opts = webdriver.ChromeOptions()
opts.add_argument("user-agent=Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36")
driver = webdriver.Chrome('C:/Users/JSALINA/Documents/chromedriver.exe', options=opts)
driver.maximize_window()
time.sleep(2)
driver.get('https://fasecolda.com/ramos/automoviles/historial-de-accidentes-de-vehiculos-asegurados/')
time.sleep(3)
driver.find_element(By.XPATH, '//*[@id="form"]/div/div/div/div[2]/div/div/div/div/span').click()
The error it shows is the following:
The button I'm trying to click is this:
Thank you very much in advance for your kind cooperation.
Cheers