Package org.uiautomation.ios.client.uiamodels.impl

Examples of org.uiautomation.ios.client.uiamodels.impl.RemoteIOSDriver


  }

  @Test(expectedExceptions = SessionNotCreatedException.class)
  public void wrongVersion() {
    driver =
        new RemoteIOSDriver(getRemoteURL(), IOSCapabilities.iphone("UICatalog", "not a number."));
  }
View Full Code Here


  @Test(expectedExceptions = SessionNotCreatedException.class)
  public void wrongSDK() {
    IOSCapabilities cap = IOSCapabilities.iphone("InternationalMountains");
    cap.setSDKVersion("17");
    driver = new RemoteIOSDriver(getRemoteURL(), cap);
  }
View Full Code Here

  @Test
  public void correctSDK() {
    IOSCapabilities cap = IOSCapabilities.iphone("InternationalMountains");
    String sdk = ClassicCommands.getDefaultSDK();
    cap.setSDKVersion(sdk);
    driver = new RemoteIOSDriver(getRemoteURL(), cap);
    IOSCapabilities actual = driver.getCapabilities();
    Assert.assertEquals(actual.getSDKVersion(), sdk);
  }
View Full Code Here

        try {
          IOSCapabilities cap = IOSCapabilities.iphone("InternationalMountains");
          cap.setSDKVersion(sdk);

          driver = new RemoteIOSDriver(getRemoteURL(), cap);
          IOSCapabilities actual = driver.getCapabilities();

          Assert.assertEquals(actual.getSDKVersion(), sdk);
        } finally {
          if (driver != null) {
View Full Code Here

  }

  @Test
  public void correctDevice() {
    IOSCapabilities cap = IOSCapabilities.iphone("UICatalog");
    driver = new RemoteIOSDriver(getRemoteURL(), cap);
    IOSCapabilities actual = driver.getCapabilities();
    Assert.assertEquals(actual.getDevice(), DeviceType.iphone);

    driver.quit();

    cap = IOSCapabilities.ipad("UICatalog");
    driver = new RemoteIOSDriver(getRemoteURL(), cap);
    actual = driver.getCapabilities();
    Assert.assertEquals(actual.getDevice(), DeviceType.ipad);
  }
View Full Code Here

  @Test
  public void canUseAnyFlagFromInfoPlistMatches() {
    IOSCapabilities cap = IOSCapabilities.iphone("UICatalog");
    cap.setCapability(IOSCapabilities.MAGIC_PREFIX + "CFBundleDevelopmentRegion", "en");
    driver = new RemoteIOSDriver(getRemoteURL(), cap);
    IOSCapabilities actual = driver.getCapabilities();
    Assert.assertEquals(actual.getBundleId(), "com.yourcompany.UICatalog");
    Assert.assertEquals(actual.getBundleVersion(), "2.10");
  }
View Full Code Here

  @Test(expectedExceptions = SessionNotCreatedException.class)
  public void canUseAnyFlagFromInfoPlistMatchesNeg() {
    IOSCapabilities cap = IOSCapabilities.iphone("UICatalog");
    cap.setCapability(IOSCapabilities.MAGIC_PREFIX + "CFBundleDevelopmentRegion", "en2");
    driver = new RemoteIOSDriver(getRemoteURL(), cap);
  }
View Full Code Here

    cap.setCapability(LANGUAGE, "es");
    cap.setCapability(LOCALE, "en_GB");
    cap.setCapability(BUNDLE_NAME, "Safari");

    // normal iphone
    driver = new RemoteIOSDriver(getRemoteURL(), cap);
    Capabilities actual = driver.getCapabilities();

    driver.switchTo().window("Web");
    driver.get(getRemoteURL() + "/status");
View Full Code Here

*/
public final class AutAsUrlTest extends BaseIOSDriverTest {

  @Test
  public void canUseUrlInAut() {
    driver = new RemoteIOSDriver(getRemoteURL(), SampleApps.uiCatalogCap());
    String expected = "UIATableCell";
    WebElement element = driver.findElement(By.tagName(expected));
    Assert.assertEquals(element.getTagName(), expected);
  }
View Full Code Here

                    findDomElement(By.cssSelector(LOADING_INDICATOR)));
        }
    }

    private RemoteIOSDriver augmentDriver() {
        RemoteIOSDriver driver = IOSDriverAugmenter.getIOSDriver((RemoteWebDriver) getDriver());
        return driver;
    }
View Full Code Here

TOP

Related Classes of org.uiautomation.ios.client.uiamodels.impl.RemoteIOSDriver

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.