Package org.uiautomation.ios.communication

Examples of org.uiautomation.ios.communication.WebDriverLikeRequest


    log.remove("screenshot");
    return log;
  }

  public static List<UIAElement> findElements(WebDriverLikeCommandExecutor executor, Criteria c) {
    WebDriverLikeRequest request = executor.buildRequest(WebDriverLikeCommand.ELEMENTS_ROOT, ImmutableMap.of("depth", -1, "criteria", c.stringify()));
    return executor.execute(request);
  }
View Full Code Here


    WebDriverLikeRequest request = executor.buildRequest(WebDriverLikeCommand.ELEMENTS_ROOT, ImmutableMap.of("depth", -1, "criteria", c.stringify()));
    return executor.execute(request);
  }

  public static <T extends UIAElement> T findElement(WebDriverLikeCommandExecutor executor, Criteria c) {
    WebDriverLikeRequest request = executor.buildRequest(WebDriverLikeCommand.ELEMENT_ROOT, ImmutableMap.of("depth", -1, "criteria", c.stringify()));
    return executor.execute(request);
  }
View Full Code Here

    return executor.execute(request);
  }

  public static Map<String, Object> getConfiguration(WebDriverLikeCommandExecutor executor, WebDriverLikeCommand command) {
    Map p = ImmutableMap.of("command", command.toString());
    WebDriverLikeRequest request = executor.buildRequest(WebDriverLikeCommand.GET_CONFIGURATION, null, new HashMap<String, Object>(), p);
    return executor.execute(request);
  }
View Full Code Here

    return executor.execute(request);
  }

  public static void setConfiguration(WebDriverLikeCommandExecutor executor, WebDriverLikeCommand command, String key, Object value) {
    Map p = ImmutableMap.of("command", command.toString());
    WebDriverLikeRequest request = executor.buildRequest(WebDriverLikeCommand.CONFIGURE, null, ImmutableMap.of(key, value), p);
    executor.execute(request);
  }
View Full Code Here

    Map p = ImmutableMap.of("fromX", Integer.toString(from.getX()),
                            "fromY", Integer.toString(from.getY()),
                            "toX", Integer.toString(to.getX()),
                            "toY", Integer.toString(to.getY()),
                            "duration", durationInSecs);
    WebDriverLikeRequest request = executor.buildRequest(WebDriverLikeCommand.DRAG_FROM_TO_FOR_DURATION, p);
    executor.execute(request);
  }
View Full Code Here

    Map p = ImmutableMap.of("fromX", Integer.toString(from.getX()),
                            "fromY", Integer.toString(from.getY()),
                            "toX", Integer.toString(to.getX()),
                            "toY", Integer.toString(to.getY()),
                            "duration", durationInSecs);
    WebDriverLikeRequest request = executor.buildRequest(WebDriverLikeCommand.PINCH_CLOSE_FROM_TO_FOR_DURATION, p);
    executor.execute(request);
  }
View Full Code Here

    Map p = ImmutableMap.of("fromX", Integer.toString(from.getX()),
                            "fromY", Integer.toString(from.getY()),
                            "toX", Integer.toString(to.getX()),
                            "toY", Integer.toString(to.getY()),
                            "duration", durationInSecs);
    WebDriverLikeRequest request = executor.buildRequest(WebDriverLikeCommand.PINCH_OPEN_FROM_TO_FOR_DURATION, p);
    executor.execute(request);
  }
View Full Code Here

    }

  }

  private void createScrollRequest(String direction) {
    WebDriverLikeRequest request = buildRequest(WebDriverLikeCommand.ELEMENT_SCROLL,
            ImmutableMap.of("direction", direction));

    commandExecutor.execute(request);

    //TODO: dynamically check for scrolling to be complete
View Full Code Here

  }


  @Override
  public void scrollToElementWithName(String name) {
    WebDriverLikeRequest request = buildRequest(WebDriverLikeCommand.ELEMENT_SCROLL,
            ImmutableMap.of("name", name));
    commandExecutor.execute(request);
  }
View Full Code Here

    commandExecutor.execute(request);
  }

  @Override
  public void scrollToElementWithPredicate(String predicate) {
    WebDriverLikeRequest request = buildRequest(WebDriverLikeCommand.ELEMENT_SCROLL,
            ImmutableMap.of("predicateString", predicate));
    commandExecutor.execute(request);
  }
View Full Code Here

TOP

Related Classes of org.uiautomation.ios.communication.WebDriverLikeRequest

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.