public class NoraUiExpectedConditions extends Object
Modifier and Type | Method and Description |
---|---|
static org.openqa.selenium.support.ui.ExpectedCondition<org.openqa.selenium.WebElement> |
atLeastOneOfTheseElementsIsPresent(org.openqa.selenium.By... locators)
Expects that at least one of the given elements is present.
|
static org.openqa.selenium.support.ui.ExpectedCondition<Boolean> |
clickCanBeDoneWithoutAlertOnElement(org.openqa.selenium.WebElement element)
Click can be done without alert on Element.
|
static org.openqa.selenium.support.ui.ExpectedCondition<Boolean> |
clickCanBeDoneWithoutAlertOnElementLocated(org.openqa.selenium.By locator)
click can be done without alert on element located.
|
static org.openqa.selenium.support.ui.ExpectedCondition<String> |
newWindowOpens(Set<String> currentHandles) |
static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> |
presenceOfMaximumElementsLocatedBy(org.openqa.selenium.By locator,
int nb)
An expectation for checking that nb elements that match (or less) the locator are present on the web page.
|
static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> |
presenceOfMinimumElementsLocatedBy(org.openqa.selenium.By locator,
int nb)
An expectation for checking that nb elements that match (or more) the locator are present on the web page.
|
static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> |
presenceOfNbElementsLocatedBy(org.openqa.selenium.By locator,
int nb)
An expectation for checking that nb elements that match the locator are present on the web page.
|
static org.openqa.selenium.support.ui.ExpectedCondition<Boolean> |
textContainsExpectedValue(org.openqa.selenium.By locator,
String value)
Expects that the target element contains the given value as text.
|
static org.openqa.selenium.support.ui.ExpectedCondition<Boolean> |
textToBeEqualsToExpectedValue(org.openqa.selenium.By locator,
String value)
Expects that the target element equals the given value as text.
|
static org.openqa.selenium.support.ui.ExpectedCondition<String> |
textToBePresentInElement(org.openqa.selenium.By locator)
text to be presentInElement on element located.
|
static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> |
visibilityOfNbElementsLocatedBy(org.openqa.selenium.By locator,
int nb)
An expectation for checking that nb elements present on the web page that match the locator
are visible.
|
static org.openqa.selenium.support.ui.ExpectedCondition<Boolean> |
waitForLoad()
Expects that the target page is completely loaded.
|
public static org.openqa.selenium.support.ui.ExpectedCondition<Boolean> textToBeEqualsToExpectedValue(org.openqa.selenium.By locator, String value)
locator
- is the selenium locatorvalue
- is the expected valuepublic static org.openqa.selenium.support.ui.ExpectedCondition<Boolean> textContainsExpectedValue(org.openqa.selenium.By locator, String value)
locator
- is the selenium locatorvalue
- is the expected valuepublic static org.openqa.selenium.support.ui.ExpectedCondition<org.openqa.selenium.WebElement> atLeastOneOfTheseElementsIsPresent(org.openqa.selenium.By... locators)
locators
- The list of elements identified by their locatorspublic static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> presenceOfNbElementsLocatedBy(org.openqa.selenium.By locator, int nb)
locator
- Locator of elementsnb
- Expected number of elementspublic static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> presenceOfMinimumElementsLocatedBy(org.openqa.selenium.By locator, int nb)
locator
- Locator of elementsnb
- Expected number of elementspublic static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> presenceOfMaximumElementsLocatedBy(org.openqa.selenium.By locator, int nb)
locator
- Locator of elementsnb
- Expected number of elementspublic static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> visibilityOfNbElementsLocatedBy(org.openqa.selenium.By locator, int nb)
locator
- Locator of elementnb
- Expected number of elementspublic static org.openqa.selenium.support.ui.ExpectedCondition<Boolean> waitForLoad()
public static org.openqa.selenium.support.ui.ExpectedCondition<String> newWindowOpens(Set<String> currentHandles)
currentHandles
- is list of opened windows.public static org.openqa.selenium.support.ui.ExpectedCondition<Boolean> clickCanBeDoneWithoutAlertOnElement(org.openqa.selenium.WebElement element)
element
- is target WebElement.public static org.openqa.selenium.support.ui.ExpectedCondition<Boolean> clickCanBeDoneWithoutAlertOnElementLocated(org.openqa.selenium.By locator)
locator
- is the selenium locatorpublic static org.openqa.selenium.support.ui.ExpectedCondition<String> textToBePresentInElement(org.openqa.selenium.By locator)
locator
- is the selenium locatorCopyright © 2023 NoraUi. All rights reserved.