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

Mobile Testing, Android App Testing.
fsiglia
Posts: 10
Joined: Mon Sep 03, 2018 10:23 am

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

Post by fsiglia » Wed Sep 19, 2018 4:08 pm

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!

User avatar
RobinHood42
Posts: 324
Joined: Fri Jan 09, 2015 3:24 pm

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

Post by RobinHood42 » Thu Sep 20, 2018 10:09 am

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
Last edited by RobinHood42 on Thu Sep 20, 2018 11:26 am, edited 2 times in total.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

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

Post by odklizec » Thu Sep 20, 2018 11:18 am

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 ;)
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
RobinHood42
Posts: 324
Joined: Fri Jan 09, 2015 3:24 pm

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

Post by RobinHood42 » Thu Sep 20, 2018 11:24 am

Hi,

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

Cheers,
Robin

fsiglia
Posts: 10
Joined: Mon Sep 03, 2018 10:23 am

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

Post by fsiglia » Thu Sep 20, 2018 1:41 pm

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.