I"m trying to enter some text in the box as shown below. I've narrowed the element down to SMDMainText. I've tried numerous ways of finding the element, however when I try to send_keys(), the result is that I get the error "element not interactable". The issue that I'm facing is that I'm trying to find an element called <input automplete="on"> and don't quite understand how to send text to it.
<input automplete="on">
element = browser.find_element_by_class_name("styledModalDialogueDIV") element = browser.find_element_by_css_selector("form") element = browser.find_element_by_id("SMDMain") element = browser.find_element_by_id("SMDMainText") element = browser.find_element_by_css_selector("input") # comment all but 1 line above, and try below: element.send_keys("Hello World") # same error is produced for each try
You need to target the input tag.
element = browser.find_element_by_css_selector("#SMDMainText>div>input")
2.1m questions
2.1m answers
60 comments
57.0k users