use of org.openqa.selenium.DeviceRotation in project java-client by appium.
the class UIAutomator2Test method testLandscapeRightRotation.
@Test
public void testLandscapeRightRotation() {
DeviceRotation landscapeRightRotation = new DeviceRotation(0, 0, 90);
driver.rotate(landscapeRightRotation);
assertEquals(driver.rotation(), landscapeRightRotation);
}
use of org.openqa.selenium.DeviceRotation in project java-client by appium.
the class XCUIAutomationTest method testLandscapeLeftRotation.
@Test
public void testLandscapeLeftRotation() {
DeviceRotation landscapeLeftRotation = new DeviceRotation(0, 0, 270);
driver.rotate(landscapeLeftRotation);
assertEquals(driver.rotation(), landscapeLeftRotation);
}
use of org.openqa.selenium.DeviceRotation in project java-client by appium.
the class XCUIAutomationTest method testLandscapeRightRotation.
@Test
public void testLandscapeRightRotation() {
DeviceRotation landscapeRightRotation = new DeviceRotation(0, 0, 90);
driver.rotate(landscapeRightRotation);
assertEquals(driver.rotation(), landscapeRightRotation);
}
use of org.openqa.selenium.DeviceRotation in project java-client by appium.
the class UIAutomator2Test method testLandscapeLeftRotation.
@Test
public void testLandscapeLeftRotation() {
DeviceRotation landscapeLeftRotation = new DeviceRotation(0, 0, 270);
driver.rotate(landscapeLeftRotation);
assertEquals(driver.rotation(), landscapeLeftRotation);
}
use of org.openqa.selenium.DeviceRotation in project java-client by appium.
the class UIAutomator2Test method testPortraitUpsideDown.
@Test
public void testPortraitUpsideDown() {
DeviceRotation landscapeRightRotation = new DeviceRotation(0, 0, 180);
driver.rotate(landscapeRightRotation);
assertEquals(driver.rotation(), landscapeRightRotation);
}
Aggregations