|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@PublicApi public interface PageElement
Represents an HTML element that is expected on a DOM of a page.
| Method Summary | |
|---|---|
PageElement |
clear()
Clear the value of the text entry element. |
PageElement |
click()
Click this element |
PageElement |
find(org.openqa.selenium.By locator)
Returns an element that will match the given locator within this element. |
List<PageElement> |
findAll(org.openqa.selenium.By locator)
Returns a list of element's that match the given locator within this element |
String |
getAttribute(String name)
Get the value of the given attribute of this element. |
org.openqa.selenium.Point |
getLocation()
Location of this element on the page (top-left corner) |
org.openqa.selenium.Dimension |
getSize()
Dimension of this element on the page |
String |
getTagName()
Get the tag name of this element |
String |
getText()
Get the visible innerText of this element, including sub-elements, without any leading or trailing whitespaces. |
String |
getValue()
Get the value of this element's "value" attribute. |
boolean |
hasAttribute(String name,
String value)
Whether this element has an attribute set to a specific value |
boolean |
hasClass(String className)
Whether this element has the given class set |
boolean |
isEnabled()
Whether this element is enabled on the page |
boolean |
isPresent()
Whether this element is currently on the DOM of the page |
boolean |
isSelected()
Whether this element is selected on the page. |
boolean |
isVisible()
Whether this element is visible on the page |
PageElementJavascript |
javascript()
Gets a PageElementJavascript for this element |
PageElement |
select()
Select an element. |
TimedElement |
timed()
Creates a timed element based on this element's locator. |
PageElement |
toggle()
If the element is a checkbox this will toggle the elements state from selected to not selected, or from not selected to selected. |
PageElement |
type(CharSequence... keys)
Simulate typing into this element. |
PageElement |
withTimeout(TimeoutType timeoutType)
Returns an instance equivalent to this element, with a changed timeoutType. |
| Methods inherited from interface com.atlassian.pageobjects.elements.PageElementFinder |
|---|
find, find, find, findAll, findAll, findAll |
| Method Detail |
|---|
boolean isPresent()
boolean isVisible()
boolean isEnabled()
boolean isSelected()
boolean hasClass(String className)
className - The name of the class to check
String getAttribute(String name)
name - The name of the attribute.
boolean hasAttribute(String name,
String value)
name - The attribute namevalue - The expected value
String getText()
String getTagName()
String getValue()
org.openqa.selenium.Point getLocation()
org.openqa.selenium.Dimension getSize()
PageElement click()
PageElement type(CharSequence... keys)
keys - keys to type
PageElement select()
PageElement toggle()
PageElement clear()
List<PageElement> findAll(org.openqa.selenium.By locator)
findAll in interface PageElementFinderlocator - The locator mecharnism
PageElement find(org.openqa.selenium.By locator)
isPresent()
to check whether a corresponding element on the page actually exists.
find in interface PageElementFinderlocator - The locator mechanism
TimedElement timed()
PageElementJavascript javascript()
PageElement withTimeout(TimeoutType timeoutType)
timeoutType - new timeout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||