|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.test.selenium.locator.AbstractLocator<AttributeLocator<E>>
org.jboss.test.selenium.locator.DefaultAttributeLocator<E>
E - the type of associated element locator, which can be obtained from this attribute locatorpublic class DefaultAttributeLocator<E extends ElementLocator<E>>
Default implementation of locator for element's attributes.
| Constructor Summary | |
|---|---|
DefaultAttributeLocator(ElementLocator<E> elementLocator,
Attribute attribute)
Instantiates a attribute locator using given elementLocator and the specific attribute. |
|
| Method Summary | |
|---|---|
AttributeLocator<E> |
format(Object... args)
|
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. |
ElementLocationStrategy |
getLocationStrategy()
Returns the location strategy for this element |
String |
getRawLocator()
Returns the raw locator (without the prefix defining location strategy) representation. |
| Methods inherited from class org.jboss.test.selenium.locator.AbstractLocator |
|---|
getAsString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.test.selenium.locator.Locator |
|---|
getAsString |
| Constructor Detail |
|---|
public DefaultAttributeLocator(ElementLocator<E> elementLocator,
Attribute attribute)
elementLocator - the element locatorattribute - the attribute| Method Detail |
|---|
public String getRawLocator()
Locator
getRawLocator in interface Locator<AttributeLocator<E extends ElementLocator<E>>>getRawLocator in class AbstractLocator<AttributeLocator<E extends ElementLocator<E>>>public ElementLocationStrategy getLocationStrategy()
Locator
getLocationStrategy in interface Locator<AttributeLocator<E extends ElementLocator<E>>>public ElementLocator<E> getAssociatedElement()
AttributeLocator
getAssociatedElement in interface AttributeLocator<E extends ElementLocator<E>>public Attribute getAttribute()
AttributeLocator
getAttribute in interface AttributeLocator<E extends ElementLocator<E>>public AttributeLocator<E> format(Object... args)
format in interface AttributeLocator<E extends ElementLocator<E>>format in interface Locator<AttributeLocator<E extends ElementLocator<E>>>format in class AbstractLocator<AttributeLocator<E extends ElementLocator<E>>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||