I have a long string to test and sendKeys() takes too long. When I tried to set the value of the text the program crashes. I know the Selenium
sendKeys()
text
Thanks to Andrey Egorov, in my case with python setAttribute not working, but I found I can set the property directly,
setAttribute
Try this code:
driver.execute_script("document.getElementById('q').value='value here'")