Tag: difference between webdriver click and javascript click

Selenium Interview Question 8 – What is Difference between WebDriver click and JavaScript click methods

In this post we will see another frequently asked interview question:- Difference between WebDriver click() and JavaScript click() method in Selenium. We can perform click on a web element of a web page in two ways:- Using WebDriver click – element.click() Using JavaScript click –((JavascriptExecutor)driver).executeScript(“arguments[0].click()”, element); ( Note- driver is a WebDriver instance.) So question […]

Please wait...

Subscribe to new posts to become automation expert

Want to be notified when my new post is published? Get my posts in your inbox.