Part 2: Usages Of Javascripts In Selenium: How To Run Javascript Commands In Selenium

Hello folks, In previous post, we have learnt why do we need javascript in Selenium webdriver.  In this post we will learn how to run javascript commands in selenium webdriver. Selenium people provides an interface named “JavascriptExecutor“, which provides declaration of two methods as below: Object executeScript(String arg0, Object… arg1); Object executeAsyncScript(String arg0, Object… arg1); … Continue reading Part 2: Usages Of Javascripts In Selenium: How To Run Javascript Commands In Selenium