Ajocado API 1.0.0.Alpha2

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 Known Subinterfaces:
AttributeLocator<E>, ElementLocator<T>, IterableLocator<T>, OptionLocator<T>

public interface Locator<T extends Locator<T>>

Locates the object by given strategy and parameters.

Version:
$Revision$
Author:
Lukas Fryc

Method Summary
 Locator<T> format(Object... args)
           
 String getAsString()
          Returns the locator represented as string used in Selenium to locate elements.
 LocationStrategy getLocationStrategy()
          Returns the location strategy for this element
 String getRawLocator()
          Returns the raw locator (without the prefix defining location strategy) representation.
 

Method Detail

getLocationStrategy

LocationStrategy getLocationStrategy()
Returns the location strategy for this element

Returns:
the location strategy for this element

getAsString

String getAsString()
Returns the locator represented as string used in Selenium to locate elements.

Returns:
the locator represented as string used in Selenium to locate elements.

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)

Ajocado API 1.0.0.Alpha2

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