Here is the output when you execute the above script. Sagar 1, 1 6 Selenium Script to scroll down the page Let’s, see the scroll down a web page using the selenium webdriver with following 3 scenarios: Home Questions Tags Users Unanswered. Another thing that worked for me was the browser accessibility and TAB button. Following is an example which will scroll this page from top to bottom:.

Uploader: Malabei
Date Added: 3 January 2010
File Size: 17.26 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 32616
Price: Free* [*Free Regsitration Required]

How to Scroll Down or UP a Page in Selenium Webdriver

The problem is, the scroll bar is only visible when the mouse over is performed in the particular div. Karthik Teekay 30 May at Ripon Al Wasim Sitam Jana 2, 16 TestNG is a Testing framework, that covers different types of test scdoll like a unit test, Sign up or log in Sign up using Google. You can do It using storeAlertPresent and gotoif command.

Email Required, but never shown.

Anonymous 23 November at In the above code, we first launch the given url in Chrome browser. Following is an example which will scroll this page from top to bottom:.


Mouse scroll down using Selenium WebDriver (a.k.a. Selenium ) – JAVA – Stack Overflow

We can use JavascriptExecutor to achieve this. Next, scroll till the bottom of the page.

In the fourth scenario, illustrated the horizontal scroll on the web page. In the second scenario, we showed the scroll down of webdriveer until the visible of the element. Accounting Business Analyst Cloud Computing. In this tutorial, you will learn Javascript method ScrollBy scrolls the web page to the specific number of pixels.

The Scroll element in the page is actually a div with scroll bound to it. Arjun Sasi 19 December at In such cases scrolling may be necessary. If you want to generate scroll event on horizontal scroll bar then use ”selenium. Sign up using Email and Password.

This worked for me. To scroll down the web page by the visibility of the element. It doesn’t worked for me. I tried this running the code above but my scrollbar would only move once. I have a pop up menu with scroll bar. Stack Overflow works best with JavaScript enabled.


But in certain web pages, elements only become visible once the user have scrolled to them.

Javascript is not working here. Selenium Webdriver does not require scroll to perform actions as it manipulates DOM. As you know by sending TAB you can navigate trough the page as far as you know how many times you need to do it to get where you want.

First of all open one page which contains vertical scroll bar long description page and then run bellow test case in selenium IDE.

How to Scroll Down or UP a Page in Selenium Webdriver

If page is lengthy then increase that value. Arguments — It is the arguments to the script. Home Questions Tags Users Unanswered.