Change device orientation Landscape/Portrait

Hello,

Im using AppiumLibrary , Want to know how i can change the device orientation while running the tests, i googles it and found out some of the keywords like ‘Rotate LANDSCAPE’ and some other keyword ‘Set Orientation’ ,. but none of them are working (getting keyword not found) , if someone has any idea, pls let me know.

thanks

Just to add, during appium initialization by passing orientation = LANDSCAPE or POTRIAT it change the device orientation, but i want to change the device orientation after appium initialization

Hi,

Did you simply tried LANDSCAPE and PORTAIT as mentioned in the keyword doc?

https://serhatbolsu.github.io/robotframework-appiumlibrary/AppiumLibrary.html#Landscape

The rotate/set method are rather to use if you’re implementing in python directly I think.

Regards

Charlie