File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to scroll down a web page using htmlunit 2.12

Shanmuga Narayanan.R
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic