Package com.codeborne.selenide.ex

Examples of com.codeborne.selenide.ex.ElementNotFound


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

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


    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

    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

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

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

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

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

  }

  @Override
  protected WebElement throwElementNotFound(Condition condition, long timeoutMs) {
    if (collection.getActualElements().isEmpty()) {
      throw new ElementNotFound(collection.description(), visible, lastError, timeoutMs);
    }
    return super.throwElementNotFound(condition, timeoutMs);
  }
View Full Code Here

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

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

      sleep(pollingInterval);
    }
    while (System.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

      sleep(pollingInterval);
    }
    while (System.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

  }

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

TOP

Related Classes of com.codeborne.selenide.ex.ElementNotFound

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.