Package org.uiautomation.ios.application

Examples of org.uiautomation.ios.application.IOSRunningApplication


    for (ServerSideSession s : sessions) {
      JSONObject session = new JSONObject();
      session.put("id", s.getSessionId());

      IOSRunningApplication app = s.getApplication();
      IOSCapabilities cap = app.getCapabilities();
      session.put("capabilities", cap.getRawCapabilities());
      res.put(session);
    }
    Response resp = new Response();
    resp.setSessionId("dummy one");
View Full Code Here



  private void setFavorite(){
    boolean isSDK70OrHigher = new IOSVersion(session.getCapabilities().getSDKVersion()).isGreaterOrEqualTo(
        "7.0");
    IOSRunningApplication application = session.getApplication();
    if (application.isSafari() && isSDK70OrHigher && application.isSimulator()) {
      application.setSafariBuiltinFavorites();
    }
  }
View Full Code Here


  @Override
  public void setup() {
    DeviceType deviceType = caps.getDevice();
    IOSRunningApplication application = session.getApplication();
    String locale = caps.getLocale();
    String language = caps.getLanguage();
    IOSVersion instrumentsVersion = new IOSVersion(info.getInstrumentsVersion().getVersion());
    boolean instrumentsIs50OrHigher = instrumentsVersion.isGreaterOrEqualTo("5.0");

    boolean putDefaultFirst = instrumentsIs50OrHigher;

    simulatorSettings.setSimulatorScale(caps.getSimulatorScale());

    if (!instrumentsVersion.isGreaterOrEqualTo("6.0")) {
      application.setDefaultDevice(deviceType, putDefaultFirst);
    }

    if (!caps.getReuseContentAndSettings()) {
      simulatorSettings.resetContentAndSettings();
    }
View Full Code Here

TOP

Related Classes of org.uiautomation.ios.application.IOSRunningApplication

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.