You should add a scroll to the page to select all elements using Selenium. How can I scroll up the page? Note the scroll only go to a certain point in the page for example 0, I first used the click method to click on the webelement and then sent the key stroke. How to perform scroll down an element example div using selenium? Let me give you an example Go to www. Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of service , privacy policy and cookie policy , and that your continued use of the website is subject to these policies.

Uploader: Yolrajas
Date Added: 6 July 2015
File Size: 23.84 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 27103
Price: Free* [*Free Regsitration Required]

In the second scenario, we showed the scroll down of page until the visible of now element. Home Questions Tags Users Unanswered. Arguments — It is the arguments to the script. In the above code, we first launch the given url in Chrome browser.

Because it has attracted low-quality or spam answers that webdrivre to be removed, posting an answer now requires 10 reputation on this site the association bonus does not count. Javascript is not working here.


I didn’t use Robot before. But I can try to use. Thanks for Ripon Al Wasim’s answer. I do agree with Stephen.

Here is the HTML snippet. For scroll up 0, is logical. Your answer Your name to display optional: Unable to scroll down to bottom of div with data loading dynamically 1 answer. Thank you for your interest in this question.

How To Scroll Web Page Down Or UP Using Selenium WebDriver

Put your distances as per your requirements. Can you give me an example. Next, scroll the page horizontally until the mentioned element is visible on the current page. You should ddown a doan to the page to select all elements using Selenium. There is 1 response to this question on Selenium. The problem is, the scroll bar is only visible when the mouse over is performed in the particular div.

The more detailed context you can give the more the answer will help others. As the page which I’m testing, loads as we scroll down.

Next, scroll the page by pixels through executeScript. Javascript method ScrollBy scrolls the web page to the specific number of pixels. Some web application, have a functionality to drag web elements and drop them on defined area or Som Ghosh Try with FF and let me know.


How to scroll the Selenlum up or down in Selenium WebDriver? Selenium Webdriver does not require scroll to perform actions as it manipulates DOM. You can use the Actions class to do so without any issue in Chrome.

How To Scroll Web Page Down Or UP Using Selenium WebDriver

Email me if my answer is selected or commented on. Sign up or log in Sign up using Google. Check your Spam folder or Promotions tab for an email from no-reply edureka. So, a page down action using the former will be:. Please enter a valid emailid.

By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. I too got the same exception of Chrome not being able to focus on the element.