Is EnsureVisible action available for Mobile testing?

Mobile Testing, Android App Testing.
gilbar16
Posts: 109
Joined: Wed Mar 26, 2014 6:23 pm

Is EnsureVisible action available for Mobile testing?

Post by gilbar16 » Wed Sep 23, 2015 2:01 am

Hi,

Since the screens in mobile apps are so much smaller, users have to do a lot more scrolling to find an item.
When your target item is way down the list of items, the Recorder records so many Mouse Down actions.
I guess in Ranorex, the equivalent of "ScroolIntoView" is "EnsureVisible" as I read some of the posts here.
When you Insert or Add New Action, I don't see this EnsureVisible on the list.
Is it by choosing "User Code"?

Okay, I just saw Ensure Visible in Settings/General tab and it seems it is Checked (as default). Do I issue at least one Mouse Down action to get Ensure Visible to work?
If I just record actions to: Click on the combobox down arrow then Click on target item, it fails at Playback.
I had to execute all the Mouse Down that was recorded too.

Is there any option to say "Mouse Down 20" to do a Mouse Down 20 times, for example, like in other tools?

Thanks.
Gilbert

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

Re: Is EnsureVisible action available for Mobile testing?

Post by odklizec » Wed Sep 23, 2015 8:23 am

Hi,

EnsureVisible is by default performed automatically (depending of your General Settings and repository element setting), but in some cases, it's good to invoke this action "manually". You can find the EnsureVisible method in Invoke Action command. Just drag&drop the repo element to your recording and from the appeared context menu select EnsureVisible()...
EnsureVisible_contextmenu.png
Eventually, you can use Add New Action combo and select the Invoke Action command from the list of available actions. Then you need to set the Action Name parameter to Ensure Visible (in recording table). Hope this helps?
You do not have the required permissions to view the files attached to this post.
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

gilbar16
Posts: 109
Joined: Wed Mar 26, 2014 6:23 pm

Re: Is EnsureVisible action available for Mobile testing?

Post by gilbar16 » Wed Sep 23, 2015 4:29 pm

Hi odklizec,

Thank you very much.
Yes, the info you provided really helps.

Regards,
Gilbert

btw: Somehow I was not able to find this information in the Ranorex Online Help / User Guide.

Is there any settings in Ranorex to turn off recording of actions done with scroll bars? Like when you are looking for an item in a combo or list box while recording, the scrolling up and down in vertical or horizontal scroll bars.

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

Re: Is EnsureVisible action available for Mobile testing?

Post by odklizec » Thu Sep 24, 2015 7:16 am

gilbar16 wrote:Hi odklizec,

Thank you very much.
Yes, the info you provided really helps.
You are welcome ;)
gilbar16 wrote:Is there any settings in Ranorex to turn off recording of actions done with scroll bars? Like when you are looking for an item in a combo or list box while recording, the scrolling up and down in vertical or horizontal scroll bars.
I don't think there is a way to disable recording of these actions. Basically, you should always do some cleanup after each recording. It's good to rename and/or reorganize recorded repository items, merge some steps together and delete those unnecessary or duplicated steps. Recording as such is a great help, but its result is sometimes messy and needs to be cleaned up ;)
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