public interface TimedElement
| Modifier and Type | Method and Description |
|---|---|
TimedQuery<String> |
getAttribute(String name)
Query representing the element's given attribute.
|
TimedQuery<Set<String>> |
getCssClasses()
Query for a set of CSS classes associated with this element.
|
TimedQuery<String> |
getId()
Query for the "id" attribute of this element.
|
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.
|
TimedCondition isPresent()
TimedCondition isVisible()
TimedCondition isEnabled()
TimedCondition isSelected()
@Nonnull TimedQuery<String> getId()
null if the element is not present,
or the "id" attribute is not specifiedPageElement.getId()@Nonnull TimedQuery<Set<String>> getCssClasses()
PageElement.getCssClasses()TimedCondition hasClass(String className)
className - The name of the class to checkTimedQuery<String> getAttribute(String name)
name - Name of the attributeTimedCondition hasAttribute(String name, String value)
name - Name of the attributevalue - expected attribute valueTimedQuery<String> getText()
TimedCondition hasText(String text)
text - The expected innerText stringtrue if this element has given innerText equal to expected,
false otherwiseTimedQuery<String> getTagName()
TimedQuery<String> getValue()
TimedCondition hasValue(String value)
value - The expected value attributetrue 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 timeoutCopyright © 2015 Atlassian. All rights reserved.