I am trying to capture/automate mouse scrolling event in selenium IDE.
Like in Facebook friend list page, we have to scroll to the end to list all friends.
I want to automate that functionality using Selenium IDE .
What i have done :
with my current script i can log in to Facebook.
Then on clicking on my name from the header i can go to my profile
page.At my profile page, i am storing the value of number of friends,
and then on clicking the friends link i can go to the friend list page.At friends list page using assert function i compare the value of
number friends which i stored at previous page with the number showing
at the friend list page.
What i am not able to do
- I want to scroll using command and compare howmany friend are
already listed and how much is remaining ,if (remaining <1) then i will not scroll further
else i will scroll for some amount of time and again compare how much
is left.
Selenium RC :
selenium.getEval("window.scrollBy(x,y)");Selenium IDE :
UPDATED:
This will scroll the window to 3 different coordinates.