Wednesday, August 26, 2020

thumbnail

How to scroll and view till getting element in selenium Automation

   

Scroll the webpage and view till getting element in selenium Automation. this code will help us to scroll the web page till getting the desired element. 

             logger.info("Scrolling till element ");

JavascriptExecutor jse2 = (JavascriptExecutor) this.driverContext.getDriver();

jse2.executeScript("arguments[0].scrollIntoView()", element);

logger.info("Scrolled till element ");



Subscribe by Email

Follow Updates Articles from This Blog via Email

No Comments

About

Search This Blog

Powered by Blogger.

How to scroll down the page by 0,450 pixel vertical

 scroll down the page by  0,450 pixels vertical. You can change pixels as per your requirements like 0,1000 pixels vertical try { logger.i...