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
true");
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?
Mike
--to any element that it needs to interact with.
What are you trying to accomplish by scrolling?
Mike
On Tuesday, September 11, 2012 5:12:00 AM UTC-7, Nagarjuna Reddy K wrote:
Hi
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;
js.executeScript("javascript:window.scrollBy(0,8000)");
Thank you,
Nagarjuna
Hi
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;
js.executeScript("javascript:window.scrollBy(0,8000)");
Thank you,
Nagarjuna
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.
