|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface WebElementState
This interface is a way of presenting state information about a web element without exposing (too much) of the WebDriver API.
| Method Summary | |
|---|---|
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? |
String |
getSelectedValue()
|
String |
getSelectedVisibleTextValue()
|
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(String textValue)
Check that an element exactly matches a text value |
void |
shouldContainSelectedOption(String textValue)
|
void |
shouldContainText(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(String textValue)
Check that an element does not contain a text value |
| Method Detail |
|---|
boolean isVisible()
boolean isCurrentlyVisible()
boolean isCurrentlyEnabled()
void shouldBeVisible()
void shouldBeCurrentlyVisible()
void shouldNotBeVisible()
void shouldNotBeCurrentlyVisible()
boolean hasFocus()
boolean containsText(String value)
boolean containsOnlyText(String value)
boolean containsSelectOption(String value)
void shouldContainText(String textValue)
textValue - void shouldContainOnlyText(String textValue)
textValue - void shouldContainSelectedOption(String textValue)
void shouldNotContainText(String textValue)
textValue - void shouldBeEnabled()
boolean isEnabled()
void shouldNotBeEnabled()
String getSelectedVisibleTextValue()
String getSelectedValue()
boolean isPresent()
void shouldBePresent()
void shouldNotBePresent()
boolean isSelected()
String getTextValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||