python Executes JavaScript code snippet in the current context of a selected frame or window. 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);