public class WebDriverTimedElement extends Object implements TimedElement
| Constructor and Description |
|---|
WebDriverTimedElement(WebDriverLocatable locatable,
TimeoutType defaultTimeout)
Create a WebDriverTimedElement with the given timeout.
|
| 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.
|
void |
initialize() |
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.
|
public WebDriverTimedElement(WebDriverLocatable locatable, TimeoutType defaultTimeout)
locatable - locatable for the target elementdefaultTimeout - default timeout of this elementpublic void initialize()
public TimedCondition isPresent()
TimedElementisPresent in interface TimedElementpublic TimedCondition isVisible()
TimedElementisVisible in interface TimedElementpublic TimedCondition isEnabled()
TimedElementisEnabled in interface TimedElementpublic TimedCondition isSelected()
TimedElementisSelected in interface TimedElement@Nonnull public TimedQuery<String> getId()
TimedElementnull if the element is not present,
or the "id" attribute is not specifiedgetId in interface TimedElementPageElement.getId()@Nonnull public TimedQuery<Set<String>> getCssClasses()
TimedElementgetCssClasses in interface TimedElementPageElement.getCssClasses()public TimedCondition hasClass(String className)
TimedElementhasClass in interface TimedElementclassName - The name of the class to checkpublic TimedQuery<String> getAttribute(String name)
TimedElementgetAttribute in interface TimedElementname - Name of the attributepublic TimedCondition hasAttribute(String name, String value)
TimedElementhasAttribute in interface TimedElementname - Name of the attributevalue - expected attribute valuepublic TimedQuery<String> getText()
TimedElementgetText in interface TimedElementpublic TimedCondition hasText(String text)
TimedElementhasText in interface TimedElementtext - The expected innerText stringtrue if this element has given innerText equal to expected,
false otherwisepublic TimedQuery<String> getTagName()
TimedElementgetTagName in interface TimedElementpublic TimedQuery<String> getValue()
TimedElementgetValue in interface TimedElementpublic TimedCondition hasValue(String value)
TimedElementhasValue in interface TimedElementvalue - The expected value attributetrue if this element has given value attribute equal to
expected, false otherwisepublic TimedQuery<org.openqa.selenium.Point> getLocation()
TimedElementgetLocation in interface TimedElementnull, if the element cannot be located
by given timeoutpublic TimedQuery<org.openqa.selenium.Dimension> getSize()
TimedElementgetSize in interface TimedElementnull, if the element cannot be located
by given timeoutCopyright © 2015 Atlassian. All rights reserved.