Part 4: Usages Of Javascripts In Selenium: Understanding Method executeScript Of JavascriptExecutor

Hello folks, In this post, we will learn about method executeScript of JavascriptExecutor interface. JavascriptExecutor interface provides two methods to execute JavaScript commands. executeScript : To execute synchronized JavaScript script commands executeAsyncScript: To execute asynchronous JavaScript commands We will learn about “executeScript ” method in this post. Synatx: java.lang.Object executeScript(java.lang.String script,java.lang.Object… args) As per selenium doc, above method executes JavaScript in the context of … Continue reading Part 4: Usages Of Javascripts In Selenium: Understanding Method executeScript Of JavascriptExecutor