selenium dynamic websites javascript executor 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);