Selenium Java Interview Questions And Answers – Part 3
Selenium Java Interview Questions and Answers Part-3 1) How to scroll web page up and down using Selenium WebDriver? To scroll using Selenium, you can use JavaScriptExecutor interface that helps to execute JavaScript methods through Selenium Webdriver.
2) How to perform right click (Context Click) action in Selenium WebDriver? We can use Action class…
(0 comment)
1 2 3 |
JavascriptExecutor js = (JavascriptExecutor) driver; //This will scroll the page till the element is found js.executeScript("arguments[0].scrollIntoView();", Element); |