Package org.openqa.selenium

Examples of org.openqa.selenium.NoSuchElementException


    @Override
    protected void isLoaded() throws Error {
      try {
        element = SmartAjaxElementLocator.super.findElement();
        if (!isElementUsable(element)) {
          throw new NoSuchElementException("Element is not usable " + element.toString());
        }
      } catch (NoSuchElementException e) {
        lastException = e;
        // Should use JUnit's AssertionError, but it may not be present
        throw new NoSuchElementError("Unable to locate the element: " + e.getMessage(), e);
View Full Code Here


          *however correcting it due to https://java.net/jira/browse/THUCYDIDES-187 */
          return;
        }
        for (WebElement element : elements) {
          if (!isElementUsable(element)) {
            throw new NoSuchElementException("Element is not usable");
          }
        }
      } catch (NoSuchElementException e) {
        lastException = e;
        // Should use JUnit's AssertionError, but it may not be present
View Full Code Here

        }

        @Step
        public void no_such_element_web_step() {
            getDriver().get("failing_step");
            throw new NoSuchElementException("Could not find element");
        }
View Full Code Here

  }

  @Override
  protected WebElement getDelegate() {
    long startTime = System.currentTimeMillis();
    NoSuchElementException exception;
    do {
      try {
        return elementLocator.findElement();
      } catch (NoSuchElementException e) {
        exception = e;
View Full Code Here

TOP

Related Classes of org.openqa.selenium.NoSuchElementException

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.