SyntaxFix
Write A Post
Hire A Developer
Questions
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'")