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.
JavaScript
x
10
10
1
element = browser.find_element_by_class_name("styledModalDialogueDIV")
2
element = browser.find_element_by_css_selector("form")
3
element = browser.find_element_by_id("SMDMain")
4
element = browser.find_element_by_id("SMDMainText")
5
element = browser.find_element_by_css_selector("input")
6
7
# comment all but 1 line above, and try below:
8
element.send_keys("Hello World") # same error is produced for each try
9
10
Advertisement
Answer
You need to target the input tag.
JavaScript
1
2
1
element = browser.find_element_by_css_selector("#SMDMainText>div>input")
2