I needed to scroll like that for a particular case where the element was
hidden until the user scrolls down, see the bottom bar at
http://www.c1000.nl/ for example.

I used the follwing code to solve this (java):

JavascriptExecutor js = (JavascriptExecutor) this.driver;
js.executeScript("window.scrollTo(0, document.body.scrollHeight); return

Hope this helps,

Erik Winter

Op dinsdag 11 september 2012 19:07:05 UTC+2 schreef Mike Riley het volgende:
First, why do you need to scroll down? Selenium will scroll automatically
to any element that it needs to interact with.

What are you trying to accomplish by scrolling?

On Tuesday, September 11, 2012 5:12:00 AM UTC-7, Nagarjuna Reddy K wrote:


Can any one give me information regarding how to scroll down page using
web driver .Actually i have used below code for face book to scroll down
page ,it's executing but page is not scroll downed. Here is the problem
with coordinates i am using or any thing else .Give me any suggestions
regarding this

JavascriptExecutor js = (JavascriptExecutor) driver;

Thank you,
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/UvKnWmlYtnAJ.
To post to this group, send email to webdriver@googlegroups.com.
To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 6 | next ›



site design / logo © 2016 Grokbase