Trying to update my code to use "driver.find_element(By.XPATH..."
instead of "driver.find_elements_by_xpath(..."
, but I keep getting the following the error when I send keys:
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
Here is my code:
driver = webdriver.Chrome(PATH)
link_login = "https://www.wyzant.com/tutor/jobs"
driver.get(link_login)
username_input = driver.find_element(By.XPATH, "//*[@id='Username']")[1]
username_input.send_keys("Test")
Use
find_elements
instead offind_element
to select the element like you do in your example:or change your xpath to select more specific
'//form[@class="sso-login-form"]//*[@id="Username"]'
: