Example usage for org.openqa.selenium DeviceRotation DeviceRotation

List of usage examples for org.openqa.selenium DeviceRotation DeviceRotation

Introduction

In this page you can find the example usage for org.openqa.selenium DeviceRotation DeviceRotation.

Prototype

public DeviceRotation(int x, int y, int z) 

Source Link

Document

Instantiate a DeviceRotation object based on three integers.

Usage

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);
}