When I run the following:
self.driver.execute_script("document.getElementByXpath('//input[@id='someid']').value='someValue';
It gives an error
selenium.common.exceptions.JavascriptException: Message:
javascript error: missing ) after argument list
You are using the same kind of quote in two different levels of parsing, and so
'//input[@id='is interpreted as one string literal, after whichsomeidis unexpected.Change:
To: