Page 1 of 1
How to scroll within iOS table to element with some name
Posted: Mon Mar 04, 2013 12:21 pm
by Oksana
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
Re: How to scroll within iOS table to element with some name
Posted: Tue Mar 05, 2013 4:09 pm
by Support Team
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)
Re: How to scroll within iOS table to element with some name
Posted: Tue Mar 05, 2013 4:12 pm
by Oksana
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.
Re: How to scroll within iOS table to element with some name
Posted: Tue Mar 05, 2013 5:54 pm
by Support Team
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)
Re: How to scroll within iOS table to element with some name
Posted: Wed Mar 06, 2013 8:34 am
by Oksana
Thanks!