Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to use JavaScript executor in Java Selenium
JavaScriptExecutor js = (JavaScriptExecutor) driver;
js.executeScript("alert('Hello World!')");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment