Package org.uiautomation.ios.communication

Examples of org.uiautomation.ios.communication.WebDriverLikeRequest


  }

  @Override
  public UIAButton getCancelButton() {
    WebDriverLikeRequest request = buildRequest(WebDriverLikeCommand.ALERT_CANCEL_BUTTON);
    return commandExecutor.execute(request);

  }
View Full Code Here


  }

  @Override
  public UIAButton getDefaultButton() {
    WebDriverLikeRequest request = buildRequest(WebDriverLikeCommand.ALERT_DEFAULT_BUTTON);
    UIAButton butt = commandExecutor.execute(request);
    return butt;
  }
View Full Code Here

    return butt;
  }

  @Override
  public void dismiss() {
    WebDriverLikeRequest request = buildRequest(WebDriverLikeCommand.DISMISS_ALERT);
    commandExecutor.execute(request);

  }
View Full Code Here

  }

  @Override
  public void accept() {
    WebDriverLikeRequest request = buildRequest(WebDriverLikeCommand.ACCEPT_ALERT);
    commandExecutor.execute(request);
  }
View Full Code Here

    commandExecutor.execute(request);
  }

  @Override
  public void sendKeys(String keysToSend) {
    WebDriverLikeRequest
        request =
        buildRequest(WebDriverLikeCommand.SET_ALERT_TEXT, ImmutableMap.of("text", keysToSend));
    commandExecutor.execute(request);
  }
View Full Code Here

    //To change body of implemented methods use File | Settings | File Templates.
  }

  @Override
  public String getText() {
    WebDriverLikeRequest request = buildRequest(WebDriverLikeCommand.GET_ALERT_TEXT);
    return commandExecutor.execute(request);
  }
View Full Code Here

    super(driver, reference);
  }

  @Override
  public void setValue(boolean value) {
    WebDriverLikeRequest request = buildRequest(WebDriverLikeCommand.NATIVE_SWITCH_SET_VALUE,
            ImmutableMap.of("value", value));

    commandExecutor.execute(request);
  }
View Full Code Here

    return (T) findElement(newOne);
  }

  @Override
  public <T extends UIAElement> T findElement(Criteria c) throws NoSuchElementException {
    WebDriverLikeRequest request = buildRequest(WebDriverLikeCommand.ELEMENT,
                                                ImmutableMap
                                                    .of("depth", -1, "criteria", c.stringify()));
    return commandExecutor.execute(request);
  }
View Full Code Here

  }

  @Override
  @SuppressWarnings("unchecked")
  public List<UIAElement> findElements(Criteria c) {
    WebDriverLikeRequest request = buildRequest(WebDriverLikeCommand.ELEMENTS,
                                                ImmutableMap
                                                    .of("depth", -1, "criteria", c.stringify()));
    return commandExecutor.execute(request);
  }
View Full Code Here

  protected WebElement findElement(String by, String using) {
    if (using == null) {
      throw new IllegalArgumentException("Cannot find elements when the selector is null.");
    }

    WebDriverLikeRequest request = buildRequest(WebDriverLikeCommand.ELEMENT,
                                                ImmutableMap.of("using", by, "value", using));
    return 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.