Issue
I am using Selenium to try to login to a website but when I try to send the keys, I am getting the following error: selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
. The website is: website.
I hope anyone can help me.
My code is:
buttom = browser.find_element_by_class_name("loginInputs").find_element_by_class_name("passwordInput")
buttom.send_keys("password")
Solution
It doesn't work because the element with the class name passwordInput
is a <div>
. What you want is the <input>
element, so use:
password = browser.find_element_by_class_name("loginInputs").find_element_by_class_name("passwordInput").find_element_by_css_selector("input")
password.send_keys("password")
Answered By - vtasca
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.