Page 1 of 1

How to tell if you are at the end of a swipable element

Posted: Wed Sep 19, 2018 4:08 pm
by fsiglia
Hi everyone, I would like to know if there is a Ranorex API method to tell if, inside a swipable element, we have reached the end so that by doing another swipe the visible area don't change. Thanks in advance!

Re: How to tell if you are at the end of a swipable element

Posted: Thu Sep 20, 2018 10:09 am
by RobinHood42
Hi fsiglia,

No, there is no way to check or control the swipe action. You'll need to find the correct swipe length by trial and error, but once found, it should, in most scenarios, be correct :D

Cheers,
Robin

Re: How to tell if you are at the end of a swipable element

Posted: Thu Sep 20, 2018 11:18 am
by odklizec
RobinHood42 wrote:
Thu Sep 20, 2018 10:09 am
You'll need to find the correct swipe length by trial and error, but once found, it always will be correct :D
Not necessarily, if the element is filled dynamically, with random number of items ;)

Re: How to tell if you are at the end of a swipable element

Posted: Thu Sep 20, 2018 11:24 am
by RobinHood42
Hi,

Yeah, true that. Added a *should* to my answer :P

Cheers,
Robin

Re: How to tell if you are at the end of a swipable element

Posted: Thu Sep 20, 2018 1:41 pm
by fsiglia
ok, I will stick with the current method then. I take a snapshot of the current view before every swipe so that I can compare the elements found before with the elements found after the swipe. If they are the same I've reached the end of the swipable area.