Package org.uiautomation.ios

Examples of org.uiautomation.ios.IOSCapabilities


    String sdk = ClassicCommands.getDefaultSDK();
    if (!DeviceVariation.compatibleWithSDKVersion(device, variation, sdk)) {
      return;
    }
    IOSCapabilities cap = new IOSCapabilities();

    cap.setCapability(DEVICE, device);
    cap.setDeviceVariation(variation);

    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();
View Full Code Here


  private static final String SDK_VERSION_SYSTEM_PROPERTY = "SDK";
  private static final String UI_CATALOG_BUNDLE_NAME = "UICatalog";
  private static final String BUNDLE_VERSION = "2.10";

  public static IOSCapabilities uiCatalogCapNoLangNoLocale() {
    IOSCapabilities capabilities = new IOSCapabilities();
    capabilities.setCapability(IOSCapabilities.DEVICE, DeviceType.iphone);
    capabilities.setCapability(IOSCapabilities.BUNDLE_NAME, UI_CATALOG_BUNDLE_NAME);
    capabilities.setCapability(IOSCapabilities.BUNDLE_VERSION, BUNDLE_VERSION);
    String sdkVersion = System.getProperty(SDK_VERSION_SYSTEM_PROPERTY, null);
    if (sdkVersion != null) {
      capabilities.setSDKVersion(sdkVersion);
    }
    return capabilities;
  }
View Full Code Here

    return new ArrayList<>();
  }

  @Override
  public IOSCapabilities getCapabilities() {
    IOSCapabilities res = IOSCapabilities.iphone("Safari");
    res.setBundleId(bundleId);
    res.setBundleName("Safari");
    res.setSupportedLanguages(getSupportedLanguagesCodes());
    List<DeviceType> supported = new ArrayList<>();
    supported.add(DeviceType.iphone);
    res.setCapability(IOSCapabilities.SUPPORTED_DEVICES, supported);
    List<Integer> families = new ArrayList<>();
    families.add(1);
    res.setCapability(IOSCapabilities.DEVICE_FAMILLY, families);
    res.setCapability(IOSCapabilities.SIMULATOR, false);

    return res;
  }
View Full Code Here

TOP

Related Classes of org.uiautomation.ios.IOSCapabilities

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.