Regions change when running on diff computers

Asked by Roland Prancan

I'm developing an iPhone app test on different computers . When I get the "iPhone" region on my MBP working and go to my home iMac (27") the regions don't match. I understand the different screen sizes will move regions around. Can I capture the emulator image with find() and assign that to a region?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Have a look at the App class. Works really fine on Mac.

Revision history for this message
Roland Prancan (rprancan) said :
#2

How is the "Apps" class going to help me capture the current place on the screen I am going to find the iPhone emulator? Doesn't the Apps class just open, close and focus the app you are working with? I would think that turning a "find()" operation into a region would somehow work?

Revision history for this message
RaiMan (raimund-hocke) said :
#3

ae = App("the emulator - you name it")
# suppose it is already up and running

ae.focus() # comes to front
aew = App.focusedWindow()

# now aew should be the region of the emulator window

Revision history for this message
RaiMan (raimund-hocke) said :
#4

you may check it with:

aew.highlight(3)

Can you help with this problem?

Provide an answer of your own, or ask Roland Prancan for more information if necessary.

To post a message you must log in.