Page 1 of 1

How can I figure out different landscape and portrait mode

Posted: Fri Sep 13, 2013 9:48 am
by DanielNikolov
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

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

Posted: Mon Sep 16, 2013 4:40 pm
by Support Team
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)