roniyast / obSeleniumBasics

0 stars 0 forks source link

Why there is java script executer used ? #1

Open beunas opened 3 years ago

beunas commented 3 years ago

Why there is java script executer used ?

//JavascriptExecutor js = (JavascriptExecutor)driver; //js.executeScript("arguments[0].click()", promptButton);

roniyast commented 3 years ago

Yes ma’am , While doing that prompt example an exception named ElementClickInterceptedException Occured because of a google ad overlapping and it was not allowing the button click .Inorder to solve that issue google suggested this one Java script executer.