Page 1 of 1

How to select non visible element in table?

Posted: Fri Jan 18, 2013 11:19 am
by Swapnil_d13
Hi,
I have RxPath like ..table/container[@name='0']/element/text[@name='<Txtname>']" tracked using spy.
Here this table contains more container items . It shows only visible elements in spy. i.e if table can show only 10 container item to user but when I scroll it has more container items. Above RxPath is of first container Item. Using spy it tracks from container1 to container10 then it is possible to do operation till container 10 in source code but what about invisible conatiner item i.e beyond 10?

Re: How to select non visible element in table?

Posted: Fri Jan 18, 2013 4:07 pm
by Ciege
So the table is "Lazy Loaded"... It only creates the elements of the table when they are needed.

One solution, that I use, is to write some code that does the following:

If you just want to build up the table as a variable:
Create an iList and find/add the available elements of the table to it.
Scroll down one page.
find/add the new elements of the table to the iList.
repeat until the last row of the table is found.

If you just want to find a specific element of the table:
Search the table elements for the specific element you want.
If not found, scroll down one page.
repeat until the last row of the table is found.

Re: How to select non visible element in table?

Posted: Wed Jan 23, 2013 2:20 pm
by Swapnil_d13
It worked using mouse scroll.
Actually it was infragistics grid and thus showing only visible element.