public interface WebElementsHaveExpectations
WebElement (or an instance of WebElements.
About the ibello expectation engine, see hu.ibello.expect.
| Modifier and Type | Method and Description |
|---|---|
void |
size(int size)
An expectation which comes true when the element collection's size is the given one.
|
void |
sizeBetween(int minSize,
int maxSize)
An expectation which comes true when the element collection's size is between the given values.
|
void |
sizeGreaterThan(int lowerLimit)
An expectation which comes true when the element collection's size is greater than the given one.
|
void |
sizeLessThan(int upperLimit)
An expectation which comes true when the element collection's size is less than the given one.
|
void size(int size)
If the method was called after WebElementsExpectationBuilder.toNotHave(),
then the outcome of the expectation is the opposite: it will fail if the size equals to the given one.
size - expected size of element collectionvoid sizeGreaterThan(int lowerLimit)
If the method was called after WebElementsExpectationBuilder.toNotHave(),
then the outcome of the expectation is the opposite: it will fail if the size is greater than the limit.
lowerLimit - lower limit of element collection's sizevoid sizeLessThan(int upperLimit)
If the method was called after WebElementsExpectationBuilder.toNotHave(),
then the outcome of the expectation is the opposite: it will fail if the size is less than the limit.
upperLimit - upper limit of element collection's sizevoid sizeBetween(int minSize,
int maxSize)
minSize, and it must be
less that or equal to the maxSize.
If this not occurs during the timeout, an exception will be thrown,
all information will be logged and the current test will fail.
If the method was called after WebElementsExpectationBuilder.toNotHave(),
then the outcome of the expectation is the opposite: it will fail if the size is between the given values.
minSize - lower limit of element collection's sizemaxSize - upper limit of element collection's sizeCreated by Kornél Simon, 2022