コード例 #1
0
  protected WebElement findElement(final String by, final String using) {
    final OperaWebElement el = this;

    return parent.implicitlyWaitFor(
        new Callable<WebElement>() {
          public WebElement call() {
            return parent.findElement(by, using, el);
          }
        });
  }
コード例 #2
0
  private void assertElementDisplayed(String message) {
    Boolean displayed =
        parent.implicitlyWaitFor(
            new Callable<Boolean>() {
              public Boolean call() {
                return isDisplayed();
              }
            });

    if (displayed == null || !displayed) {
      throw new ElementNotVisibleException(message);
    }
  }