Package org.openqa.selenium

Examples of org.openqa.selenium.Rotatable


   
  @Test
  public void canSetAndGetOrientationUsingTheWebDriverAPI() throws MalformedURLException {
    driver = new RemoteIOSDriver(getRemoteURL(), IOSCapabilities.iphone("Safari"));
    WebDriver d = new Augmenter().augment(driver);
    Rotatable rotator = ((Rotatable) d);
    rotator.rotate(LANDSCAPE);
    Assert.assertEquals(rotator.getOrientation(), LANDSCAPE);
    rotator.rotate(PORTRAIT);
    Assert.assertEquals(rotator.getOrientation(), PORTRAIT);
  }
View Full Code Here


  @Test(expectedExceptions = WebDriverException.class)
  public void detectUnsupportedOrientationWithTheWebDriverAPI() throws MalformedURLException {
    driver = new RemoteIOSDriver(getRemoteURL(), SampleApps.uiCatalogCap());
    WebDriver d = new Augmenter().augment(driver);
    Rotatable rotator = ((Rotatable) d);
    Assert.assertEquals(rotator.getOrientation(), PORTRAIT);
    rotator.rotate(LANDSCAPE);
  }
View Full Code Here

    ElementTree tree = IOSDriverAugmenter.augment(driver);
  }

  @Test
  public void rotatable() {
    Rotatable rotator = IOSDriverAugmenter.augment(driver);
    rotator.rotate(ScreenOrientation.PORTRAIT);
  }
View Full Code Here

TOP

Related Classes of org.openqa.selenium.Rotatable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.