Graphene Selenium: API 2.0.0.Alpha1

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

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

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.element.ElementLocator
format, getAttribute, getLocationStrategy
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.Locator
getRawLocator
 
Methods inherited from interface org.jboss.arquillian.ajocado.selenium.SeleniumRepresentable
inSeleniumRepresentation
 

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 compound 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

Graphene Selenium: API 2.0.0.Alpha1

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