I think it's similar to this issue: Button not clickable in Selenium Chrome window
I need to search information about a list of logements in an automatic way. I'm trying selenium but it cannot click the button to perform the search. Maybe it's some protection from the website ?
So far my script is:
import time
import string
import itertools
from selenium import webdriver
chromedriver_location = "/home/dell/Downloads/chromedriver"
driver = webdriver.Chrome(chromedriver_location)
driver.get('https://www.idealista.com/valoraciones-inmuebles')
time.sleep(2)
test = '7559431DG0075N0001EY'
initial_button = '//*[@id="vendorlead"]/div[2]/a'
search_field = '//*[@id="search-by-reference"]'
valoration = '//*[@id="vendorlead"]/button'
driver.find_element_by_xpath(initial_button).click()
driver.find_element_by_xpath(search_field).send_keys(test)
driver.find_element_by_xpath(valoration).click()
When I click the button manually or through script in Selenium Chrome it shows the errors below on console:
Thanks in advance