Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
zhengli
Posts : 2
Join date : 2013-04-24

How to scroll in div/table? Empty How to scroll in div/table?

Wed Apr 24, 2013 5:26 am
Hi, I am new in Selenium IDE. My project is to test a Web Application building with GWT. I need to expand an element in side bar which consist of more than 100 elements. The side bar only shows 10 elements at a time while the target elements is at the end of the side bar. New elements loaded as I scrolling down the side bar manually (AJAX). So I need to scroll in side bar before I could find the target element. I tried 'focus' by Xpath, but it doesn't work. Following is my code:

focus
xpath=id('isc_1Ntable')/x:tbody[2]/x:tr[@aria-posinset="65"]


aria-posinset="65" is a unique identifier of the element.
Could anyone explain in detail how to scroll down in div/table? Any help is appreciated. Thank you.
avatar
tarun3kumar
Master
Master
Posts : 186
Join date : 2012-02-14
http://seleniumtests.com

How to scroll in div/table? Empty Re: How to scroll in div/table?

Wed Apr 24, 2013 4:52 pm
This might help -

http://stackoverflow.com/questions/13488359/how-to-automate-mouse-scrolling-event-in-selenium-ide
avatar
zhengli
Posts : 2
Join date : 2013-04-24

How to scroll in div/table? Empty Re: How to scroll in div/table?

Wed Apr 24, 2013 11:58 pm
Thank you, I have tried this, but it scrolls on the whole page. What I want to do is to just scroll on part of the page.
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 38
Location : Denver, CO

How to scroll in div/table? Empty Re: How to scroll in div/table?

Thu Apr 25, 2013 2:32 am
Looks like you could try this:

For an elment you can get the coordinates using storeElementPositionLeft and storeElementPositionTop commands. Pass the value of these as your parameters.
Sponsored content

How to scroll in div/table? Empty Re: How to scroll in div/table?

Back to top
Permissions in this forum:
You cannot reply to topics in this forum