Selenium IDE Scroll Page

699 views
Skip to first unread message

Rolando

unread,
May 9, 2011, 2:48:32 PM5/9/11
to Selenium Users
Hi,
I have been able to get my page to scroll by using the following
command:

runScript | |
javascript{selenium.browserbot.getCurrentWindow().scrollBy(0,500);}

My problem is that even after a successfull scroll is throwing the
current JS error which is making my test fail:

[error] Unexpected Exception: message -> eval(match[1]) is undefined,
fileName -> chrome://selenium-ide/content/selenium/scripts/selenium-api.js,
lineNumber -> 2490, stack ->
("javascript{selenium.browserbot.getCurrentWindow().scrollBy(0,500);}")@chrome://
selenium-ide/content/selenium/scripts/selenium-api.js:2490 ()@chrome://
selenium-ide/content/selenium/scripts/selenium-executionloop.js:110
(0)@chrome://selenium-ide/content/selenium/scripts/selenium-
executionloop.js:78 (0)@chrome://selenium-ide/content/selenium/scripts/
htmlutils.js:60 , name -> TypeError

Thanks
-Rolando

Jayakumar C

unread,
May 11, 2011, 11:05:02 AM5/11/11
to seleniu...@googlegroups.com
@Rolando,

Try,
storeEval   |  selenium.browserbot.getCurrentWindow().scrollBy(0,500)



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.




--
Jayakumar

Bala Murugan V

unread,
Feb 18, 2021, 11:46:51 AM2/18/21
to Selenium Users
Hi Team,
runScript   |  selenium.browserbot.getCurrentWindow().scrollBy(0,500) running without error.
But on the screen no changes observed. 
In my application, 2 Vertical Scroll is there. 
Please help me how to scroll inner Vertical Scroll?

Thanks in advance.

Regards,
Bala
.
Scroll.png

SuperKevy

unread,
Feb 19, 2021, 10:34:49 AM2/19/21
to Selenium Users
Did you try the moveToElement() method  
Reply all
Reply to author
Forward
0 new messages