Selenium Java - JavaScriptExecutor
What is wrong with this JavaScriptExecutor code snippet?
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("arguments[0].value = 'test';");