Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

» Selenium IDE Verify different Maps (Hybridview, Mapview etc.)
Fri Nov 25, 2016 9:56 pm by DJ87

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

How to scroll in div/table?

View previous topic View next topic Go down

How to scroll in div/table?

Post by zhengli on 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.

zhengli

Posts : 2
Join date : 2013-04-24

Back to top Go down

Re: How to scroll in div/table?

Post by tarun3kumar on Wed Apr 24, 2013 4:52 pm

This might help -

http://stackoverflow.com/questions/13488359/how-to-automate-mouse-scrolling-event-in-selenium-ide

_________________
Thanks
Tarun K
Free Selenium Training

tarun3kumar
Master
Master

Posts : 186
Join date : 2012-02-14

http://seleniumtests.com

Back to top Go down

Re: How to scroll in div/table?

Post by zhengli on 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.

zhengli

Posts : 2
Join date : 2013-04-24

Back to top Go down

Re: How to scroll in div/table?

Post by ccox on 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.

ccox
Master
Master

Posts : 205
Join date : 2012-01-06
Age : 31
Location : Denver, CO

Back to top Go down

Re: How to scroll in div/table?

Post by Sponsored content Today at 10:56 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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