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

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
Answers (1)
Private answer

Please reference this link from the Mobile Labs support website:

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
Thanks! This is exactly what I was looking for!
( at October 31, 2018 5:23 pm)

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

Scroll to Top