How to get the current orientation of the device in Appium? – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> How to get the current orientation of ...

How to get the current orientation of the device in Appium?



ScreenOrientation pOrientation = driver.getOrientation();
//Printing the orientation.
System.out.println(pOrientation);

Leave a Reply

Your email address will not be published. Required fields are marked *