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

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


      throw new WebDriverException(e);
    }
  }

  public void stop() {
    RemoteIOSDriver d = getDriver();
    if (d == null) {
      throw new WebDriverException("driver not active.");
    } else {
      driver.quit();
      driver = null;
View Full Code Here


    stopDriver();
  }

  @Test
  public void base() {
    driver = new RemoteIOSDriver(getRemoteURL(), SampleApps.uiCatalogCap());
    IOSCapabilities cap = IOSCapabilities.iphone("UICatalog", "2.10");
    String sdk = cap.getSDKVersion();
    if (sdk == null) {
      sdk = ClassicCommands.getDefaultSDK();
    }
View Full Code Here

    Assert.assertEquals(actual.getSDKVersion(), sdk);
  }

  @Test
  public void noVersion() {
    driver = new RemoteIOSDriver(getRemoteURL(), SampleApps.uiCatalogCap());

    IOSCapabilities actual = driver.getCapabilities();
    Assert.assertEquals(actual.getBundleId(), "com.yourcompany.UICatalog");
    Assert.assertEquals(actual.getBundleVersion(), "2.10");
  }
View Full Code Here

    Assert.assertEquals(actual.getBundleVersion(), "2.10");
  }

  @Test
  public void appWithNoContentCanStart() throws Exception {
    driver = new RemoteIOSDriver(getRemoteURL(), SampleApps.noContentCap());
    IOSCapabilities actual = driver.getCapabilities();
    Assert.assertEquals(actual.getBundleId(), "freynaud.testNoContent");
    Assert.assertEquals(actual.getBundleVersion(), "1.0");

    try {
View Full Code Here

  @Test
  public void startDefaultLanguageLocale() {
    IOSCapabilities capabilitiesNoLanguageNoLocale;
    capabilitiesNoLanguageNoLocale = SampleConfig.uiCatalogCapNoLangNoLocale();
    driver = new RemoteIOSDriver(getRemoteURL(), capabilitiesNoLanguageNoLocale);
    IOSCapabilities actual = driver.getCapabilities();

    Assert.assertEquals(actual.getBundleId(), "com.yourcompany.UICatalog");
    Assert.assertEquals(actual.getBundleVersion(), "2.10");
    Assert.assertEquals(actual.getLanguage(), "en");
View Full Code Here

  @Test
  public void startSpecifiedLanguageLocale() {
    IOSCapabilities cap = IOSCapabilities.iphone("InternationalMountains");
    cap.setLanguage("fr");
    cap.setLocale("es");
    driver = new RemoteIOSDriver(getRemoteURL(), cap);

    IOSCapabilities actual = driver.getCapabilities();
    Assert.assertEquals(actual.getBundleId(), "com.yourcompany.InternationalMountains");
    Assert.assertEquals(actual.getBundleVersion(), "1.1");
    // default to UK Assert.assertEquals(target.getLanguage(), "fr");
View Full Code Here

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

    driver = new RemoteIOSDriver(getRemoteURL(), cap);
  }

  @Test(expectedExceptions = SessionNotCreatedException.class)
  public void doesntExist() {
    driver = new RemoteIOSDriver(getRemoteURL(), IOSCapabilities.iphone("ferret", "2.10"));
  }
View Full Code Here

  @Test(expectedExceptions = SessionNotCreatedException.class)
  public void sdkTooOld() {
    IOSCapabilities cap = SampleApps.uiCatalogCap();
    cap.setSDKVersion("4.3");
    driver = new RemoteIOSDriver(getRemoteURL(), cap);
  }
View Full Code Here

  @Test(expectedExceptions = SessionNotCreatedException.class)
  public void sdkNotInstalled() {
    IOSCapabilities cap = SampleApps.uiCatalogCap();
    cap.setSDKVersion("5.1");
    driver = new RemoteIOSDriver(getRemoteURL(), cap);
  }
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.