org.jboss.arquillian.ajocado.locator
Class XPathLocator
java.lang.Object
org.jboss.arquillian.ajocado.locator.AbstractLocator<T>
org.jboss.arquillian.ajocado.locator.element.AbstractElementLocator<T>
org.jboss.arquillian.ajocado.locator.element.AbstractIterableLocator<XPathLocator>
org.jboss.arquillian.ajocado.locator.XPathLocator
- All Implemented Interfaces:
- Iterable<XPathLocator>, CompoundableLocator<XPathLocator>, ElementLocator<XPathLocator>, ExtendedLocator<XPathLocator>, IterableLocator<XPathLocator>, Locator<XPathLocator>, SeleniumRepresentable
public class XPathLocator
- extends AbstractIterableLocator<XPathLocator>
- implements ExtendedLocator<XPathLocator>
Locates the element using XPath expression.
- Version:
- $Revision$
- Author:
- Lukas Fryc
XPathLocator
public XPathLocator(String xpath)
- Instantiates a new xpath locator.
- Parameters:
xpath - the xpath
getLocationStrategy
public ElementLocationStrategy getLocationStrategy()
- Specified by:
getLocationStrategy in interface ElementLocator<XPathLocator>- Specified by:
getLocationStrategy in interface Locator<XPathLocator>
get
public XPathLocator get(int index)
- Specified by:
get in interface IterableLocator<XPathLocator>
getChild
public XPathLocator getChild(XPathLocator elementLocator)
- Specified by:
getChild in interface CompoundableLocator<XPathLocator>
getDescendant
public XPathLocator getDescendant(XPathLocator elementLocator)
- Specified by:
getDescendant in interface CompoundableLocator<XPathLocator>
format
public ExtendedLocator<XPathLocator> format(Object... args)
- Specified by:
format in interface ElementLocator<XPathLocator>- Specified by:
format in interface ExtendedLocator<XPathLocator>- Specified by:
format in interface Locator<XPathLocator>- Overrides:
format in class AbstractElementLocator<XPathLocator>
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.