I want to put a text into div () by using selenium. I use python and insert javascript into my code. Here is my code :
js="document.getElementsByClassName(\"inputPanel\")[0].innerText=\"hello!\";"
But It remind me there is a mistake:
selenium.common.exceptions.WebDriverException: Message: unknown error: Cannot set property 'innerText' of undefined
how can I solve this problem? If you can help, I would appreciate it !!
.inputPanel