Selenium Java - JavaScriptExecutor
You wrote this code to click a button via JavaScript but it throws a ClassCastException:
What is the error and how to fix it?
JavascriptExecutor js = driver;
js.executeScript("arguments[0].click();", button);What is the error and how to fix it?
