public interface WebElementBeExpectations
WebElement.
About the ibello expectation engine, see hu.ibello.expect.
| Modifier and Type | Method and Description |
|---|---|
void |
clickable()
An expectation which comes true when the element can be clicked.
|
void |
displayed()
An expectation which comes true when the element is displayed on the page.
|
void |
enabled()
An expectation which comes true when the element is enabled.
|
void |
present()
An expectation which comes true when the element is attached to the DOM structure of
the page.
|
void |
readonly()
An expectation which comes true when the element is read-only.
|
void |
selected()
An expectation which comes true when the element is selected.
|
void displayed()
If the method was called after WebElementExpectationBuilder.toNotBe(),
then the outcome of the expectation is the opposite: it will fail if the element is displayed.
void enabled()
If the method was called after WebElementExpectationBuilder.toNotBe(),
then the outcome of the expectation is the opposite: it will fail if the element is enabled.
void readonly()
If the method was called after WebElementExpectationBuilder.toNotBe(),
then the outcome of the expectation is the opposite: it will fail if the element is not read-only.
void clickable()
If the method was called after WebElementExpectationBuilder.toNotBe(),
then the outcome of the expectation is the opposite: it will fail if the element is clickable.
void selected()
select tag and radio buttons can be selected.
If the method was called after WebElementExpectationBuilder.toNotBe(),
then the outcome of the expectation is the opposite: it will fail if the element is selected.
void present()
If the method was called after WebElementExpectationBuilder.toNotBe(),
then the outcome of the expectation is the opposite: it will fail if the element is present in the DOM.
Created by Kornél Simon, 2022