Example usage for org.openqa.selenium.remote DriverCommand SET_SCREEN_ORIENTATION

List of usage examples for org.openqa.selenium.remote DriverCommand SET_SCREEN_ORIENTATION

Introduction

In this page you can find the example usage for org.openqa.selenium.remote DriverCommand SET_SCREEN_ORIENTATION.

Prototype

String SET_SCREEN_ORIENTATION

To view the source code for org.openqa.selenium.remote DriverCommand SET_SCREEN_ORIENTATION.

Click Source Link

Usage

From source file:com.google.android.testing.nativedriver.client.AndroidNativeDriver.java

License:Apache License

@Override
public void rotate(ScreenOrientation orientation) {
    // Refers to org.openqa.selenium.android.AndroidDriver
    execute(DriverCommand.SET_SCREEN_ORIENTATION, ImmutableMap.of("orientation", orientation));
}

From source file:com.google.iphone.testing.nativedriver.client.IosNativeDriver.java

License:Apache License

public void rotate(ScreenOrientation orientation) {
    execute(DriverCommand.SET_SCREEN_ORIENTATION, ImmutableMap.of("orientation", orientation));
}

From source file:com.mengge.AppiumDriver.java

License:Apache License

@Override
public void rotate(ScreenOrientation orientation) {
    execute(DriverCommand.SET_SCREEN_ORIENTATION,
            ImmutableMap.of("orientation", orientation.value().toUpperCase()));
}