Graphene Implementation 1.0.0.CR3

org.jboss.arquillian.ajocado.locator
Class XPathLocator

java.lang.Object
  extended by org.jboss.arquillian.ajocado.locator.AbstractLocator<T>
      extended by org.jboss.arquillian.ajocado.locator.element.AbstractElementLocator<T>
          extended by org.jboss.arquillian.ajocado.locator.element.AbstractIterableLocator<XPathLocator>
              extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.arquillian.ajocado.locator.element.AbstractIterableLocator
AbstractIterableLocator.ElementIterator
 
Constructor Summary
XPathLocator(String xpath)
          Instantiates a new xpath locator.
 
Method Summary
 ExtendedLocator<XPathLocator> format(Object... args)
           
 XPathLocator get(int index)
           
 XPathLocator getChild(XPathLocator elementLocator)
           
 XPathLocator getDescendant(XPathLocator elementLocator)
           
 ElementLocationStrategy getLocationStrategy()
           
 
Methods inherited from class org.jboss.arquillian.ajocado.locator.element.AbstractIterableLocator
iterator, size
 
Methods inherited from class org.jboss.arquillian.ajocado.locator.element.AbstractElementLocator
getAttribute
 
Methods inherited from class org.jboss.arquillian.ajocado.locator.AbstractLocator
getRawLocator, inSeleniumRepresentation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.element.IterableLocator
iterator, size
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.element.ElementLocator
getAttribute
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.Locator
getRawLocator
 
Methods inherited from interface org.jboss.arquillian.ajocado.selenium.SeleniumRepresentable
inSeleniumRepresentation
 

Constructor Detail

XPathLocator

public XPathLocator(String xpath)
Instantiates a new xpath locator.

Parameters:
xpath - the xpath
Method Detail

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>

Graphene Implementation 1.0.0.CR3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.