Ajocado API 1.0.0.Alpha2

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

Type Parameters:
T - the type of locator which can be derived from this locator
All Superinterfaces:
Locator<T>
All Known Subinterfaces:
IterableLocator<T>

public interface ElementLocator<T extends ElementLocator<T>>
extends Locator<T>

Locator for locating elements on page.

Version:
$Revision$
Author:
Lukas Fryc

Method Summary
 ElementLocator<T> format(Object... args)
           
 AttributeLocator<T> getAttribute(Attribute attribute)
          Returns the locator for attribute for given locator.
 ElementLocationStrategy getLocationStrategy()
          Returns the location strategy for this element
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.Locator
getAsString, getRawLocator
 

Method Detail

getAttribute

AttributeLocator<T> getAttribute(Attribute attribute)
Returns the locator for attribute for given locator.

Parameters:
attribute - type for obtaining from this locator
Returns:
the attribute for this locator

getLocationStrategy

ElementLocationStrategy getLocationStrategy()
Description copied from interface: Locator
Returns the location strategy for this element

Specified by:
getLocationStrategy in interface Locator<T extends ElementLocator<T>>
Returns:
the location strategy for this element

format

ElementLocator<T> format(Object... args)
Specified by:
format in interface Locator<T extends ElementLocator<T>>

Ajocado API 1.0.0.Alpha2

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