|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Element
Represents an element (existing or not-existing) on a page in given test context. May be used to query existence and some properties of an arbitrary element on a tested page.
Elements are bound to and may be retrieved via Locator
s.
Locator
Method Summary | |
---|---|
TimedQuery<String> |
attribute(String attrName)
TimedQuery for the element's given attribute (if any). |
Element |
clear()
If this element is an input, this will clear out it's value. |
Element |
click()
Click this element |
TimedCondition |
containsText(String text)
A condition representing a query of this element in terms of it containing a particular text. |
TimedCondition |
doesNotContainText(String text)
A condition representing a query of this element in terms of it NOT containing a particular text. |
TimedCondition |
isNotPresent()
A condition representing non-existence of this locator on a page. |
TimedCondition |
isNotVisible()
A condition representing non-visibility of this locator on a page. |
TimedCondition |
isPresent()
A condition representing existence of this locator on a page. |
TimedCondition |
isVisible()
A condition representing visibility of this locator on a page. |
TimedQuery<String> |
text()
TimedQuery for the element's text (if any). |
Element |
type(com.atlassian.webtest.ui.keys.KeySequence keys)
Type given key sequence into the element |
TimedQuery<String> |
value()
TimedQuery for the element's value. |
Method Detail |
---|
TimedCondition isPresent()
TimedCondition isNotPresent()
TimedCondition isVisible()
TimedCondition isNotVisible()
TimedCondition containsText(String text)
text
- text to check against
TimedCondition doesNotContainText(String text)
text
- text to check against
TimedQuery<String> value()
null
if this element is not present or has no value
and the timeout expires.TimedQuery<String> text()
null
if this element is not present or has no text
and the timeout expires.TimedQuery<String> attribute(String attrName)
attrName
- name of the attribute
null
if this element is not present or has no
such attribute and the timeout expires.Element type(com.atlassian.webtest.ui.keys.KeySequence keys)
keys
- key sequence to type in
IllegalStateException
- if the element does not allow, or support typing (e.g. is not present on the page).Element clear()
Element click()
IllegalStateException
- if the element does not allow, or support clicking (e.g. is not present on the page).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |