List of usage examples for org.openqa.selenium Rotatable getOrientation
ScreenOrientation getOrientation();
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()); }