What I am trying to do is, to take the content from a currently opened web browser text field, edit it and paste back. I can get the text like this:
def getText():
text = chrome.find_elements_by_id("HTMLEditor")[0].get_attribute("value")
return text
and it works fine. But after changing the text, I do this:
def paste(text):
chrome.find_elements_by_id("HTMLEditor")[0].send_keys(text)
in the function "paste", I get "element not interactable". I know the area chrome.find_elements_by_id("HTMLEditor")[0]
is valid since I can get the text from there.
So what am I doing wrong? Thanks.