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 *