Example usage for org.openqa.selenium Rotatable getOrientation

List of usage examples for org.openqa.selenium Rotatable getOrientation

Introduction

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

Prototype

ScreenOrientation getOrientation();

Source Link

Usage

From source file:org.specrunner.webdriver.assertions.rotatable.PluginScreenOrientation.java

License:Open Source License

@Override
protected void doEnd(IContext context, IResultSet result, WebDriver client, Rotatable rotatable)
        throws PluginException {
    if (rotatable.getOrientation() != getOrientationValue()) {
        throw new PluginException("ScreenOrientation should be '" + getOrientation() + "' but is '"
                + rotatable.getOrientation() + "'.");
    }/*from w  w  w.  ja va2  s .  c o m*/
    result.addResult(Success.INSTANCE, context.peek());
}