How can I figure out different landscape and portrait mode

Mobile Testing, Android App Testing.
DanielNikolov
Posts: 2
Joined: Fri Sep 13, 2013 9:21 am

How can I figure out different landscape and portrait mode

Post by DanielNikolov » Fri Sep 13, 2013 9:48 am

Hello!

One question concerns about different landscape and portrait mode on iPad. Each iPad has two different landscape and portrait side and do Ranorex has opportunity to check any perspective of iPad like an enum or so on?

Example:
I want to touch Menu 1 in landscape mode. After I turn over the ipad, it toutches Menu 4

Before: (before.png)
After: (after.png)

I would appreciate if you would have an answer.

Kind regards

Daniel Nikolov
Attachments
before.png
before.png (11.19 KiB) Viewed 1239 times
after.png
after.png (11 KiB) Viewed 1239 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How can I figure out different landscape and portrait mode

Post by Support Team » Mon Sep 16, 2013 4:40 pm

Hello,

If I got your question correctly, you would like to always click on 'Menu 1' (both: landscape and portrait mode).
Ranorex uses a RanoreXPath to uniquely identify an element within your application.

You might need to adjust the RanoreXPath of your 'Menu 1' item to be unique in your application:

Code: Select all

/mobileapp[@title='YourApp']/container[@controlname='Menu 1']
Could you please post or send us ([email protected]) a Ranorex Snapshot of your application?.
Please take a look at Creating Ranorex Snapshot Files in our User Guide.

Regards,
Markus (T)
.
Image