|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.test.selenium.locator.AbstractLocator<T>
org.jboss.test.selenium.locator.AbstractElementLocator<XpathLocator>
org.jboss.test.selenium.locator.XpathLocator
public class XpathLocator
Locates the element using XPath expression.
| Constructor Summary | |
|---|---|
XpathLocator(String xpath)
Instantiates a new xpath locator. |
|
| Method Summary | |
|---|---|
ExtendedLocator<XpathLocator> |
format(Object... args)
|
Iterable<XpathLocator> |
getAllChildren()
Gets the all children of element given by this locator |
Iterable<XpathLocator> |
getAllOccurrences()
Gets the all occurrences of element given by this locator |
XpathLocator |
getChild(XpathLocator elementLocator)
Gets a child of this locator by composing this locator with given elementLocator. |
Iterable<XpathLocator> |
getChildren(XpathLocator elementLocator)
Gets the children given by locator composed from this locator and given elementLocator. |
XpathLocator |
getDescendant(XpathLocator elementLocator)
Gets a descendant of this locator by composing this locator with given elementLocator. |
Iterable<XpathLocator> |
getDescendants(XpathLocator elementLocator)
Gets all the descendants for this locator specified by composed locator from this locator and given elementLocator. |
ElementLocationStrategy |
getLocationStrategy()
Returns the location strategy for this element |
XpathLocator |
getNthChildElement(int index)
Gets the N-th child element of this locator. |
XpathLocator |
getNthOccurence(int index)
Gets the N-th occurence of descendant for this locator's element |
| Methods inherited from class org.jboss.test.selenium.locator.AbstractElementLocator |
|---|
getAttribute |
| Methods inherited from class org.jboss.test.selenium.locator.AbstractLocator |
|---|
getAsString, getRawLocator, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.test.selenium.locator.ElementLocator |
|---|
getAttribute |
| Methods inherited from interface org.jboss.test.selenium.locator.Locator |
|---|
getAsString, getRawLocator |
| Constructor Detail |
|---|
public XpathLocator(String xpath)
xpath - the xpath| Method Detail |
|---|
public ElementLocationStrategy getLocationStrategy()
Locator
getLocationStrategy in interface ElementLocator<XpathLocator>getLocationStrategy in interface Locator<XpathLocator>public XpathLocator getNthChildElement(int index)
IterableLocator
getNthChildElement in interface IterableLocator<XpathLocator>index - the index of the child subsequent to this locator
public XpathLocator getNthOccurence(int index)
IterableLocator
getNthOccurence in interface IterableLocator<XpathLocator>index - the index of the descendant of this locator
public Iterable<XpathLocator> getAllChildren()
IterableLocator
getAllChildren in interface IterableLocator<XpathLocator>public Iterable<XpathLocator> getAllOccurrences()
IterableLocator
getAllOccurrences in interface IterableLocator<XpathLocator>public Iterable<XpathLocator> getChildren(XpathLocator elementLocator)
IterableLocator
getChildren in interface IterableLocator<XpathLocator>elementLocator - the locator for element for composition with this locator
public Iterable<XpathLocator> getDescendants(XpathLocator elementLocator)
IterableLocator
getDescendants in interface IterableLocator<XpathLocator>elementLocator - the element locator, which should be added to this locator to specify this element's descendants
public XpathLocator getChild(XpathLocator elementLocator)
CompoundableLocator
getChild in interface CompoundableLocator<XpathLocator>elementLocator - are added to this locator to compose new compount locator
public XpathLocator getDescendant(XpathLocator elementLocator)
CompoundableLocator
getDescendant in interface CompoundableLocator<XpathLocator>elementLocator - are added to this locator to compose new compound locator
public ExtendedLocator<XpathLocator> format(Object... args)
format in interface ElementLocator<XpathLocator>format in interface ExtendedLocator<XpathLocator>format in interface Locator<XpathLocator>format in class AbstractElementLocator<XpathLocator>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||