public class XPathLocator extends AbstractIterableLocator<XPathLocator> implements ExtendedLocator<XPathLocator>
AbstractIterableLocator.ElementIterator| Constructor and Description |
|---|
XPathLocator(String xpath)
Instantiates a new xpath locator.
|
| Modifier and Type | Method and Description |
|---|---|
ExtendedLocator<XPathLocator> |
format(Object... args) |
XPathLocator |
get(int index) |
XPathLocator |
getChild(XPathLocator elementLocator) |
XPathLocator |
getDescendant(XPathLocator elementLocator) |
ElementLocationStrategy |
getLocationStrategy() |
iterator, sizegetAttributegetRawLocator, inSeleniumRepresentation, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waititerator, sizegetAttributegetRawLocatorinSeleniumRepresentationpublic XPathLocator(String xpath)
xpath - the xpathpublic ElementLocationStrategy getLocationStrategy()
getLocationStrategy in interface ElementLocator<XPathLocator>getLocationStrategy in interface Locator<XPathLocator>public XPathLocator get(int index)
get in interface IterableLocator<XPathLocator>public XPathLocator getChild(XPathLocator elementLocator)
getChild in interface CompoundableLocator<XPathLocator>public XPathLocator getDescendant(XPathLocator elementLocator)
getDescendant in interface CompoundableLocator<XPathLocator>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>Copyright © 2013 JBoss by Red Hat. All Rights Reserved.