I'm using Selenium with Python to input an address into a textbox within the Glovo page for Madrid. The code I wrote can be seen below, and the error I get is also copied after the code.
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import time url = 'https://glovoapp.com/es/es/madrid/' # open browser driver = webdriver.Chrome() # load page driver.get(url) # find field item = driver.find_element_by_class_name('address-input__container') # select textbox and input text time.sleep(2) item.click() WebDriverWait(driver, 10).until( EC.presence_of_element_located((By.CLASS_NAME, "el-input__inner")) ) item = driver.find_element_by_class_name('el-input__inner') time.sleep(2) item.send_keys('Calle')
The error I get is shown below.
Traceback (most recent call last): item.send_keys('Calle') File "C:\Users\Usuario\anaconda3\lib\site-packages\selenium\webdriver\remote\webelement.py", line 477, in send_keys self._execute(Command.SEND_KEYS_TO_ELEMENT, File "C:\Users\Usuario\anaconda3\lib\site-packages\selenium\webdriver\remote\webelement.py", line 633, in _execute return self._parent.execute(command, params) File "C:\Users\Usuario\anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Users\Usuario\anaconda3\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) `ElementNotInteractableException: element not interactable` (Session info: chrome=91.0.4472.124)