|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.pageobjects.elements.WebDriverTimedElement
public class WebDriverTimedElement
Implementation of TimedElement based on WebDriver
| Constructor Summary | |
|---|---|
WebDriverTimedElement(WebDriverLocatable locatable,
TimeoutType defaultTimeout)
Create a WebDriverTimedElement with the given timeout. |
|
| 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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebDriverTimedElement(WebDriverLocatable locatable,
TimeoutType defaultTimeout)
locatable - locatable for the target elementdefaultTimeout - default timeout of this element| Method Detail |
|---|
public void initialize()
public TimedCondition isPresent()
TimedElement
isPresent in interface TimedElementpublic TimedCondition isVisible()
TimedElement
isVisible in interface TimedElementpublic TimedCondition isEnabled()
TimedElement
isEnabled in interface TimedElementpublic TimedCondition isSelected()
TimedElement
isSelected in interface TimedElementpublic TimedCondition hasClass(String className)
TimedElement
hasClass in interface TimedElementclassName - The name of the class to check
public TimedQuery<String> getAttribute(String name)
TimedElement
getAttribute in interface TimedElementname - Name of the attribute
public TimedCondition hasAttribute(String name,
String value)
TimedElement
hasAttribute in interface TimedElementname - Name of the attributevalue - expected attribute value
public TimedQuery<String> getText()
TimedElement
getText in interface TimedElementpublic TimedCondition hasText(String text)
TimedElement
hasText in interface TimedElementtext - The expected innerText string
true if this element has given innerText equal to expected,
false otherwisepublic TimedQuery<String> getTagName()
TimedElement
getTagName in interface TimedElementpublic TimedQuery<String> getValue()
TimedElement
getValue in interface TimedElementpublic TimedCondition hasValue(String value)
TimedElement
hasValue in interface TimedElementvalue - The expected value attribute
true if this element has given value attribute equal to
expected, false otherwisepublic TimedQuery<org.openqa.selenium.Point> getLocation()
TimedElement
getLocation in interface TimedElementnull, if the element cannot be located
by given timeoutpublic TimedQuery<org.openqa.selenium.Dimension> getSize()
TimedElement
getSize in interface TimedElementnull, 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 | |||||||||