Selenium Java - JavaScriptExecutor
You wrote this Selenium Java code to scroll to an element:
But it throws an error. What is the likely cause?
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("arguments[0].scrollIntoView();");But it throws an error. What is the likely cause?
