selenium - HtmlUnitDrivers scrolling down the page is not working in java even after enabling the javascript -
does out there know how scroll page using html unit drivers? please let me know whats best way scroll page down until last element loaded using html unit drivers?
i have tried these possibilities in html unit drivers, looks nothing loads page scrolls down. basically, page not scrolling down @ all...
after logging in, i'm trying scroll down page until last element , page source.
code:
htmlunitdriver.setjavascriptenabled(true); //htmlunitdriver.executescript("scroll(0,300);"); //htmlunitdriver.executescript("window.scrollto(0, document.body.scrollheight);"); //htmlunitdriver.executescript("window.scrollby(0,3000)", ""); //((javascriptexecutor) htmlunitdriver).executescript("window.scrollby(0,20000)", "");
hoping can me...
i wanted know if selenium htmlunitdriver provides facility scroll down page though actual page not render in browser. can fetch new records on page if can scroll page. please share if find solution this.
Comments
Post a Comment