|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TimedElement
Represents an HTML element that is expected in the DOM of a page, all queries return TimedQueries.
| Method Summary | |
|---|---|
TimedQuery<String> |
getAttribute(String name)
Query representing the element's given attribute. |
TimedQuery<org.openqa.selenium.Point> |
getLocation()
Timed query representing the location of the element on the page. |
TimedQuery<org.openqa.selenium.Dimension> |
getSize()
Timed query representing the dimension of the element. |
TimedQuery<String> |
getTagName()
Query representing the element's tag name |
TimedQuery<String> |
getText()
Query representing the element's inner text. |
TimedQuery<String> |
getValue()
Query representing the element's 'value' attribute |
TimedCondition |
hasAttribute(String name,
String value)
Query representing whether this element has the given attribute set |
TimedCondition |
hasClass(String className)
Query representing whether this element has the given classname set. |
TimedCondition |
hasText(String text)
Query representing whether this element's innerText is equal to the provided string. |
TimedCondition |
hasValue(String value)
Query representing whether this element's value attribute is equal to the provided string. |
TimedCondition |
isEnabled()
Query representing whether this element is enabled on a page. |
TimedCondition |
isPresent()
Query representing the existence of this element on a page. |
TimedCondition |
isSelected()
Query representing whether this element is selected on a page. |
TimedCondition |
isVisible()
Query representing visibility of this element on a page. |
| Method Detail |
|---|
TimedCondition isPresent()
TimedCondition isVisible()
TimedCondition isEnabled()
TimedCondition isSelected()
TimedCondition hasClass(String className)
className - The name of the class to check
TimedQuery<String> getAttribute(String name)
name - Name of the attribute
TimedCondition hasAttribute(String name,
String value)
name - Name of the attributevalue - expected attribute value
TimedQuery<String> getText()
TimedCondition hasText(String text)
text - The expected innerText string
true if this element has given innerText equal to expected,
false otherwiseTimedQuery<String> getTagName()
TimedQuery<String> getValue()
TimedCondition hasValue(String value)
value - The expected value attribute
true if this element has given value attribute equal to
expected, false otherwiseTimedQuery<org.openqa.selenium.Point> getLocation()
null, if the element cannot be located
by given timeoutTimedQuery<org.openqa.selenium.Dimension> getSize()
null, if the element cannot be located
by given timeout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||