How to scroll within iOS table to element with some name

Mobile Testing, Android App Testing.
Oksana
Posts: 64
Joined: Tue Jan 15, 2013 10:20 am

How to scroll within iOS table to element with some name

Post by Oksana » Mon Mar 04, 2013 12:21 pm

Hello!

Can you advise how to scroll within iOS table view to the cell with predefined name?

When I invoke action "EnsureVisible" for cell that is now invisible, it doesn't scroll to this element, and fails with error: "no element found for path".
Are there some built in methods for such scrolling?

Thanks,
Oksana

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: How to scroll within iOS table to element with some name

Post by Support Team » Tue Mar 05, 2013 4:09 pm

Hello,

It looks like that 'Ensure Visible' might not work if elements are not visible in a table.
Could you please try to use 'ScrollTable' with a specified index to scroll to your cell?

Please take a look at our User Guide:
http://www.ranorex.com/support/user-gui ... html#c4476

Regards,
Markus (T)

Oksana
Posts: 64
Joined: Tue Jan 15, 2013 10:20 am

Re: How to scroll within iOS table to element with some name

Post by Oksana » Tue Mar 05, 2013 4:12 pm

Hello,

Thanks for answer. But the thing is that I need to scroll to element by its name, not an index (index can always change).
Is it possible?

Sincerely,
Oksana.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: How to scroll within iOS table to element with some name

Post by Support Team » Tue Mar 05, 2013 5:54 pm

Hello,

Unfortunately, it's not possible to scroll to the element by name.
Therefore, EnsureVisible is not working in this case.

The only way would be to scroll to a specified index.

Regards,
Markus (T)

Oksana
Posts: 64
Joined: Tue Jan 15, 2013 10:20 am

Re: How to scroll within iOS table to element with some name

Post by Oksana » Wed Mar 06, 2013 8:34 am

Thanks!