public interface WebElementState
Modifier and Type | Method and Description |
---|---|
boolean |
containsOnlyText(String value)
Does this element exactly match given text?
|
boolean |
containsSelectOption(String value)
Does this dropdown contain the specified value.
|
boolean |
containsText(String value)
Does this element contain a given text?
|
boolean |
containsValue(String value)
Does this element contain a given value attribute?
|
WebElementState |
expect(String errorMessage) |
String |
getAttribute(String name) |
String |
getSelectedValue() |
List<String> |
getSelectedValues() |
List<String> |
getSelectedVisibleTexts() |
String |
getSelectedVisibleTextValue() |
List<String> |
getSelectOptions() |
String |
getText() |
String |
getTextValue() |
String |
getValue() |
boolean |
hasFocus()
Does this element currently have the focus.
|
boolean |
isClickable() |
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 |
isDisabled() |
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.
|
WebElementState |
shouldBeCurrentlyVisible()
Checks whether a web element is visible.
|
WebElementState |
shouldBeEnabled() |
WebElementState |
shouldBePresent() |
WebElementState |
shouldBeVisible()
Checks whether a web element is visible.
|
WebElementState |
shouldContainOnlyText(String textValue)
Check that an element exactly matches a text value
|
WebElementState |
shouldContainSelectedOption(String textValue) |
WebElementState |
shouldContainText(String textValue)
Check that an element contains a text value
|
WebElementState |
shouldNotBeCurrentlyVisible()
Checks whether a web element is not visible straight away.
|
WebElementState |
shouldNotBeEnabled() |
WebElementState |
shouldNotBePresent() |
WebElementState |
shouldNotBeVisible()
Checks whether a web element is not visible.
|
WebElementState |
shouldNotContainText(String textValue)
Check that an element does not contain a text value
|
boolean isVisible()
boolean isCurrentlyVisible()
boolean isCurrentlyEnabled()
WebElementState shouldBeVisible()
WebElementState shouldBeCurrentlyVisible()
WebElementState shouldNotBeVisible()
WebElementState shouldNotBeCurrentlyVisible()
boolean hasFocus()
boolean containsText(String value)
boolean containsValue(String value)
boolean containsOnlyText(String value)
boolean containsSelectOption(String value)
WebElementState shouldContainText(String textValue)
textValue
- WebElementState shouldContainOnlyText(String textValue)
textValue
- WebElementState shouldContainSelectedOption(String textValue)
WebElementState shouldNotContainText(String textValue)
textValue
- WebElementState shouldBeEnabled()
boolean isEnabled()
boolean isDisabled()
WebElementState shouldNotBeEnabled()
String getSelectedVisibleTextValue()
String getSelectedValue()
boolean isPresent()
WebElementState shouldBePresent()
WebElementState shouldNotBePresent()
boolean isSelected()
String getTextValue()
String getValue()
String getText()
WebElementState expect(String errorMessage)
boolean isClickable()
Copyright © 2021. All rights reserved.