18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

How to scroll web page while fetching the data in for loop?

shashank18shashank18 Members
edited June 2014 in Sahi Pro
Hi all,
How to scroll web page while fetching the data in for loop?

I have gone through the discussion Title "how to scroll the web page?"-beesman,
but this not helping me out. If I use "_call(window.scrollTo(0, 1200));" command in for loop, it will iterate for the number of times loop executes.

Regards
Shashank

Answers

  • When you need to scroll down, just pick an element from the bottom of the page and use the _focus() API

    Regards
    Wormi
  • Hi Wormi,
    Thank you for your answer.
    But, I am using for loop to fetch the data from a website and I am exporting the data to a excel file.
    In this case, How to scroll to fetch run-time data?

    Regards
    Shashank
Sign In or Register to comment.