How to automate rotating my app using Mobile Labs in UFT?
Question ID: 108726
1
0

I need to be able to rotate my app to make sure it works in landscape mode in addition to portrait mode. How can I automate this gesture?

Marked as spam
Posted by (Questions: 424, Answers: 91)
Asked on October 31, 2018 5:21 pm
38 views
Answers (1)
1
Private answer

Please reference this link from the Mobile Labs support website: https://mobilelabs.zendesk.com/hc/en-us/articles/207680656-How-can-I-automate-different-gestures-or-features-available-for-a-device-

The Rotate method of the MobiDevice object will rotate the device based on the parameter. Options are ePORTRAIT, eUPSIDEDOWN, eLANDSCAPERIGHT, eLANDSCAPELEFT

For example, to rotate the device to the left from portrait, include the following code in your script:

MobiDevice(''ApplicationName'').Rotate eLANDSCAPELEFT

Marked as spam
Posted by (Questions: 0, Answers: 771)
Answered on October 31, 2018 5:22 pm
0
Thanks! This is exactly what I was looking for!
( at October 31, 2018 5:23 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top