How to get the current orientation of the device in Appium?
ScreenOrientation pOrientation = driver.getOrientation();
//Printing the orientation.
System.out.println(pOrientation);
Posted on May 6, 2019
By Shah Nawaz
ScreenOrientation pOrientation = driver.getOrientation();
//Printing the orientation.
System.out.println(pOrientation);
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Privacy Policy
Accept