Graphene Selenium: API 2.0.0.Alpha1

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

Type Parameters:
T - the type of locator which can be derived from this locator
All Superinterfaces:
SeleniumRepresentable
All Known Subinterfaces:
AttributeLocator<E>, CompoundableLocator<T>, ElementLocator<T>, ExtendedLocator<T>, FilterableLocator<T>, FrameLocator<T>, IterableLocator<T>, OptionLocator<T>, WindowLocator<T>
All Known Implementing Classes:
AbstractElementLocator, AbstractFrameLocator, AbstractIterableLocator, AbstractLocator, AbstractOptionLocator, AbstractWindowLocator, DefaultAttributeLocator, FrameRelativeLocator, WindowNameLocator

public interface Locator<T extends Locator<T>>
extends SeleniumRepresentable

Locates the object by given strategy and parameters.

Version:
$Revision$
Author:
Lukas Fryc

Method Summary
 Locator<T> format(Object... args)
          Formats the locator with placeholders given by SimplifiedFormat.
 LocationStrategy getLocationStrategy()
          Returns the location strategy for this element
 String getRawLocator()
          Returns the raw locator (without the prefix defining location strategy) representation.
 
Methods inherited from interface org.jboss.arquillian.ajocado.selenium.SeleniumRepresentable
inSeleniumRepresentation
 

Method Detail

getLocationStrategy

LocationStrategy getLocationStrategy()
Returns the location strategy for this element

Returns:
the location strategy for this element

getRawLocator

String getRawLocator()
Returns the raw locator (without the prefix defining location strategy) representation.

Returns:
the raw locator (without the prefix defining location strategy) representation.

format

Locator<T> format(Object... args)
Formats the locator with placeholders given by SimplifiedFormat.

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.