Graphene Selenium: API 2.0.0.Alpha1

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

Type Parameters:
T - the type of locator which can be derived from this locator
All Superinterfaces:
Locator<T>, SeleniumRepresentable
All Known Subinterfaces:
CompoundableLocator<T>, ExtendedLocator<T>, FilterableLocator<T>, IterableLocator<T>
All Known Implementing Classes:
AbstractElementLocator, AbstractIterableLocator

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)
          Formats the locator with placeholders given by SimplifiedFormat.
 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
getRawLocator
 
Methods inherited from interface org.jboss.arquillian.ajocado.selenium.SeleniumRepresentable
inSeleniumRepresentation
 

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)
Description copied from interface: Locator
Formats the locator with placeholders given by SimplifiedFormat.

Specified by:
format in interface Locator<T extends ElementLocator<T>>
Parameters:
args - the arguments for filling in the placeholders
Returns:
the locator with filled placeholders with given arguments

Graphene Selenium: API 2.0.0.Alpha1

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