org.jboss.arquillian.ajocado.locator.element
Class AbstractElementLocator<T extends ElementLocator<T>>
java.lang.Object
org.jboss.arquillian.ajocado.locator.AbstractLocator<T>
org.jboss.arquillian.ajocado.locator.element.AbstractElementLocator<T>
- Type Parameters:
T - the type of locator which can be derived from this locator
- All Implemented Interfaces:
- ElementLocator<T>, Locator<T>, SeleniumRepresentable
- Direct Known Subclasses:
- AbstractIterableLocator
public abstract class AbstractElementLocator<T extends ElementLocator<T>>
- extends AbstractLocator<T>
- implements ElementLocator<T>
Abstract implementation of element locator able to derive attributes for itself.
- Version:
- $Revision$
- Author:
- Lukas Fryc
AbstractElementLocator
public AbstractElementLocator(String locator)
- Constructs locator for given string representation
- Parameters:
locator - the string representation of locator
getAttribute
public AttributeLocator<T> getAttribute(Attribute attribute)
- Returns the default locator for attribute belongs to this locator.
- Specified by:
getAttribute in interface ElementLocator<T extends ElementLocator<T>>
- Parameters:
attribute - type for obtaining from this locator
- Returns:
- the attribute for this locator
format
public ElementLocator<T> format(Object... args)
- Description copied from interface:
Locator
- Formats the locator with placeholders given by
SimplifiedFormat.
- Specified by:
format in interface ElementLocator<T extends ElementLocator<T>>- Specified by:
format in interface Locator<T extends ElementLocator<T>>- Overrides:
format in class AbstractLocator<T extends ElementLocator<T>>
- Parameters:
args - the arguments for filling in the placeholders
- Returns:
- the locator with filled placeholders with given arguments
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.