Ajocado Implementation 1.0.0.Alpha2

org.jboss.arquillian.ajocado.locator
Interface CompoundableLocator<T extends CompoundableLocator<T>>

Type Parameters:
T - type what will be used as result of composition
All Superinterfaces:
ElementLocator<T>, Locator<T>
All Known Subinterfaces:
ExtendedLocator<T>
All Known Implementing Classes:
CssLocator, JQueryLocator, XPathLocator

public interface CompoundableLocator<T extends CompoundableLocator<T>>
extends ElementLocator<T>

Defines element locators which can be used to derive child and generally descendant elements by given locator by composition by composition.

Version:
$Revision$
Author:
Lukas Fryc

Method Summary
 T getChild(T elementLocator)
          Gets a child of this locator by composing this locator with given elementLocator.
 T getDescendant(T elementLocator)
          Gets a descendant of this locator by composing this locator with given elementLocator.
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.ElementLocator
format, getAttribute, getLocationStrategy
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.Locator
getAsString, getRawLocator
 

Method Detail

getChild

T getChild(T elementLocator)
Gets a child of this locator by composing this locator with given elementLocator.

Parameters:
elementLocator - are added to this locator to compose new compount locator
Returns:
the composed locator for this locator with added elementLocator

getDescendant

T getDescendant(T elementLocator)
Gets a descendant of this locator by composing this locator with given elementLocator.

Parameters:
elementLocator - are added to this locator to compose new compound locator
Returns:
the composed locator for this locator with added elementLocator

Ajocado Implementation 1.0.0.Alpha2

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.