I'm having a hard time trying to use Execute Javascript driver.findElement(By.xpath in Robot Framework
I have no issues updating the value of an element using this JS method below
document.getElementById("Some_ID").value = "Some Value"
Robot can find the document.getElementById method but can't find the driver.findElement(By.xpath method
Does anyone know how I would go about using the method/instantiating the driver?
The error I get is this:
WebDriverException: Message: unknown error: driver is not defined
driverdriver.findElement()is not a JS method, it is a selenium's one - thus the error.driver?