How to automate rotating my app using Mobile Labs in UFT?

  • Questions
  • 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: 346, Answers: 13)
Asked on October 31, 2018 5:21 pm
2 views
Answers
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: 694)
Answered on October 31, 2018 5:22 pm
Thanks! This is exactly what I was looking for!
( at October 31, 2018 5:23 pm)