List of usage examples for org.openqa.selenium DeviceRotation DeviceRotation
public DeviceRotation(int x, int y, int z)
From source file:io.appium.java_client.ios.RotationTest.java
License:Apache License
@After public void afterMethod() { driver.rotate(new DeviceRotation(0, 0, 0)); }
From source file:io.appium.java_client.ios.RotationTest.java
License:Apache License
@Test public void testLandscapeRightRotation() { DeviceRotation landscapeRightRotation = new DeviceRotation(0, 0, 90); driver.rotate(landscapeRightRotation); assertEquals(driver.rotation(), landscapeRightRotation); }
From source file:io.appium.java_client.ios.RotationTest.java
License:Apache License
@Test public void testLandscapeLeftRotation() { DeviceRotation landscapeLeftRotation = new DeviceRotation(0, 0, 270); driver.rotate(landscapeLeftRotation); assertEquals(driver.rotation(), landscapeLeftRotation); }