Page 1 of 1

Is EnsureVisible action available for Mobile testing?

Posted: Wed Sep 23, 2015 2:01 am
by gilbar16
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

Re: Is EnsureVisible action available for Mobile testing?

Posted: Wed Sep 23, 2015 8:23 am
by odklizec
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?

Re: Is EnsureVisible action available for Mobile testing?

Posted: Wed Sep 23, 2015 4:29 pm
by gilbar16
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.

Re: Is EnsureVisible action available for Mobile testing?

Posted: Thu Sep 24, 2015 7:16 am
by odklizec
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 ;)