selenium POM web driver import for Java script execdutor code example
Example: how to cast to javascript executor
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript(Script,Arguments);
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript(Script,Arguments);