Examples of ElementNotFound


Examples of com.codeborne.selenide.ex.ElementNotFound

        radio.click();
        return wrap(radio);
      }
    }

    throw new ElementNotFound(radioField, value(value), 0);
  }
View Full Code Here

Examples of com.codeborne.selenide.ex.ElementNotFound

      sleep(pollingInterval);
    }
    while (currentTimeMillis() - startTime < timeoutMs);

    if (!exists(element)) {
      throw new ElementNotFound(getSearchCriteria(), condition, timeoutMs);
    }
    else {
      throw new ElementShould(getSearchCriteria(), prefix, condition, element, timeoutMs);
    }
  }
View Full Code Here

Examples of com.codeborne.selenide.ex.ElementNotFound

      sleep(pollingInterval);
    }
    while (currentTimeMillis() - startTime < timeoutMs);

    if (!exists(element)) {
      throw new ElementNotFound(getSearchCriteria(), not(condition), timeoutMs);
    }
    else {
      throw new ElementShouldNot(getSearchCriteria(), prefix, condition, element, timeoutMs);
    }
  }
View Full Code Here

Examples of com.codeborne.selenide.ex.ElementNotFound

      throw new ElementShould(getSearchCriteria(), prefix, message, condition, element, lastError, timeoutMs);
    }
  }

  protected WebElement throwElementNotFound(Condition condition, long timeoutMs) {
    throw new ElementNotFound(getSearchCriteria(), condition, lastError, timeoutMs);
  }
View Full Code Here

Examples of com.codeborne.selenide.ex.ElementNotFound

        radio.click();
        return wrap(radio);
      }
    }

    throw new ElementNotFound(radioField, value(value), 0);
  }
View Full Code Here

Examples of com.codeborne.selenide.ex.ElementNotFound

    if (Cleanup.of.isInvalidSelectorError(lastError)) {
      throw Cleanup.of.wrap(lastError);
    }
    else if (!exists(element)) {
      throw new ElementNotFound(getSearchCriteria(), condition, lastError, timeoutMs);
    }
    else {
      throw new ElementShould(getSearchCriteria(), prefix, condition, element, lastError, timeoutMs);
    }
  }
View Full Code Here

Examples of com.codeborne.selenide.ex.ElementNotFound

    if (Cleanup.of.isInvalidSelectorError(lastError)) {
      throw Cleanup.of.wrap(lastError);
    }
    else if (!exists(element)) {
      throw new ElementNotFound(getSearchCriteria(), not(condition), lastError, timeoutMs);
    }
    else {
      throw new ElementShouldNot(getSearchCriteria(), prefix, condition, element, lastError, timeoutMs);
    }
  }
View Full Code Here

Examples of com.codeborne.selenide.ex.ElementNotFound

  }

  @Override
  public void fail(WebElementsCollection collection, List<WebElement> elements, Exception lastError, long timeoutMs) {
    if (elements == null || elements.isEmpty()) {
      throw new ElementNotFound(collection, expectedTexts, lastError, timeoutMs);
    } else {
      throw new TextsMismatch(collection, ElementsCollection.getTexts(elements), expectedTexts, timeoutMs);
    }
  }
View Full Code Here

Examples of com.codeborne.selenide.ex.ElementNotFound

        radio.click();
        return wrap(radio);
      }
    }

    throw new ElementNotFound(radioField, value(value), 0);
  }
View Full Code Here

Examples of com.codeborne.selenide.ex.ElementNotFound

      sleep(pollingInterval);
    }
    while (currentTimeMillis() - startTime < timeoutMs);

    if (!exists(element)) {
      throw new ElementNotFound(getSearchCriteria(), condition, timeoutMs);
    }
    else {
      throw new ElementShould(getSearchCriteria(), prefix, condition, element, timeoutMs);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.