Executing JavaScript in Selenium WebDriver

How to run JavaScript in your browser directly from Selenium WebDriver and when to use it

Courtney Zhan

--

Modern websites use JavaScript heavily. This can make some interactions tricky. Selenium has built-in support to execute JavaScript, which can be handy for those difficult automation scenarios.

A Simple Example

--

--