public interface WebElementState
Modifier and Type | Method and Description |
---|---|
boolean |
containsOnlyText(java.lang.String value)
Does this element exactly match given text?
|
boolean |
containsSelectOption(java.lang.String value)
Does this dropdown contain the specified value.
|
boolean |
containsText(java.lang.String value)
Does this element contain a given text?
|
WebElementState |
expect(java.lang.String errorMessage) |
java.lang.String |
getSelectedValue() |
java.lang.String |
getSelectedVisibleTextValue() |
java.lang.String |
getTextValue() |
boolean |
hasFocus()
Does this element currently have the focus.
|
boolean |
isCurrentlyEnabled() |
boolean |
isCurrentlyVisible()
Is this web element present and visible on the screen
This method will not throw an exception if the element is not on the screen at all.
|
boolean |
isEnabled() |
boolean |
isPresent() |
boolean |
isSelected() |
boolean |
isVisible()
Is this web element present and visible on the screen
This method will not throw an exception if the element is not on the screen at all.
|
void |
shouldBeCurrentlyVisible()
Checks whether a web element is visible.
|
void |
shouldBeEnabled() |
void |
shouldBePresent() |
void |
shouldBeVisible()
Checks whether a web element is visible.
|
void |
shouldContainOnlyText(java.lang.String textValue)
Check that an element exactly matches a text value
|
void |
shouldContainSelectedOption(java.lang.String textValue) |
void |
shouldContainText(java.lang.String textValue)
Check that an element contains a text value
|
void |
shouldNotBeCurrentlyVisible()
Checks whether a web element is not visible straight away.
|
void |
shouldNotBeEnabled() |
void |
shouldNotBePresent() |
void |
shouldNotBeVisible()
Checks whether a web element is not visible.
|
void |
shouldNotContainText(java.lang.String textValue)
Check that an element does not contain a text value
|
boolean isVisible()
boolean isCurrentlyVisible()
boolean isCurrentlyEnabled()
void shouldBeVisible()
void shouldBeCurrentlyVisible()
void shouldNotBeVisible()
void shouldNotBeCurrentlyVisible()
boolean hasFocus()
boolean containsText(java.lang.String value)
boolean containsOnlyText(java.lang.String value)
boolean containsSelectOption(java.lang.String value)
void shouldContainText(java.lang.String textValue)
textValue
- void shouldContainOnlyText(java.lang.String textValue)
textValue
- void shouldContainSelectedOption(java.lang.String textValue)
void shouldNotContainText(java.lang.String textValue)
textValue
- void shouldBeEnabled()
boolean isEnabled()
void shouldNotBeEnabled()
java.lang.String getSelectedVisibleTextValue()
java.lang.String getSelectedValue()
boolean isPresent()
void shouldBePresent()
void shouldNotBePresent()
boolean isSelected()
java.lang.String getTextValue()
WebElementState expect(java.lang.String errorMessage)