Graphene Selenium: API 2.0.0.Alpha1

org.jboss.arquillian.ajocado.locator.attribute
Interface AttributeLocator<E extends ElementLocator<E>>

Type Parameters:
E - the type of associated element locator, which can be obtained from this attribute locator
All Superinterfaces:
Locator<AttributeLocator<E>>, SeleniumRepresentable
All Known Implementing Classes:
DefaultAttributeLocator

public interface AttributeLocator<E extends ElementLocator<E>>
extends Locator<AttributeLocator<E>>

Specific locator for attributes.

Version:
$Revision$
Author:
Lukas Fryc

Method Summary
 AttributeLocator<E> format(Object... args)
          Formats the locator with placeholders given by SimplifiedFormat.
 ElementLocator<E> getAssociatedElement()
          Returns the underlying element what associates attribute given by this locator to
 Attribute getAttribute()
          Returns the type of attribute which this locator points to.
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.Locator
getLocationStrategy, getRawLocator
 
Methods inherited from interface org.jboss.arquillian.ajocado.selenium.SeleniumRepresentable
inSeleniumRepresentation
 

Method Detail

getAssociatedElement

ElementLocator<E> getAssociatedElement()
Returns the underlying element what associates attribute given by this locator to

Returns:
the underlying element what associates attribute given by this locator to

getAttribute

Attribute getAttribute()
Returns the type of attribute which this locator points to.

Returns:
the type of attribute which this locator points to.

format

AttributeLocator<E> format(Object... args)
Description copied from interface: Locator
Formats the locator with placeholders given by SimplifiedFormat.

Specified by:
format in interface Locator<AttributeLocator<E extends ElementLocator<E>>>
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.