Hei,
I am trying to write something inside a textarea element with python selenium and a javascript:
The js is: self.driver.execute_script("document.getElementsByClassName('textarea').value='tesssst';")
But it does not get the text there and I have tried with other get elements by (..).
It works if I use self.driver.find_element_by_css_selector("textarea").send_keys(code)
or by xpath. But the problem with this method is that 'code' variable is pretty big and javascript works faster. Also, if I use
send_keys(keys.control + c/v)
it gives me an extra dot at the start of the text and I have no idea why would that even happen. Any sugestions?
