How to select non visible element in table?

Ask general questions here.
Swapnil_d13
Posts: 11
Joined: Mon Jan 14, 2013 8:50 pm

How to select non visible element in table?

Post by Swapnil_d13 » Fri Jan 18, 2013 11:19 am

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?

User avatar
Ciege
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: How to select non visible element in table?

Post by Ciege » Fri Jan 18, 2013 4:07 pm

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.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

Swapnil_d13
Posts: 11
Joined: Mon Jan 14, 2013 8:50 pm

Re: How to select non visible element in table?

Post by Swapnil_d13 » Wed Jan 23, 2013 2:20 pm

It worked using mouse scroll.
Actually it was infragistics grid and thus showing only visible element.