This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes How to scroll down a web page using htmlunit 2.12 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to scroll down a web page using htmlunit 2.12 " Watch "How to scroll down a web page using htmlunit 2.12 " New topic
Author

How to scroll down a web page using htmlunit 2.12

Shanmuga Narayanan.R
Greenhorn

Joined: Sep 29, 2013
Posts: 3
Hello to all,

Am using htmlunit 2.12 in java

I have a web page which continues to load the contents when only scrolling down the page.
Ex : Flipkart

So, I want a way to scroll the page pragmatically by using HtmlUnit 2.12

The code goes like this

// myHtmlPage.executeJavaScript("window.scrollBy(0,600)");

Is there any alternate way to scroll down the page in htmlunit 2.12?

Any help would be greatly appreciated.

Thanks in advance
 
Don't get me started about those stupid light bulbs.
 
subject: How to scroll down a web page using htmlunit 2.12
 
Similar Threads
How do I crawl web pages using JSoup or HtmlUnit?
Executing javascript from java
Code coverage with HTML Utits
Retreiving data on page scroll down event
Easy way to parse HTTP response