E - the type of associated element locator, which can be obtained from this attribute locatorpublic class DefaultAttributeLocator<E extends ElementLocator<E>> extends AbstractLocator<AttributeLocator<E>> implements AttributeLocator<E>
| Constructor and Description |
|---|
DefaultAttributeLocator(ElementLocator<E> elementLocator,
Attribute attribute)
Instantiates a attribute locator using given elementLocator and the specific attribute.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
ElementLocationStrategy |
getLocationStrategy()
Returns the location strategy for this element
|
String |
getRawLocator()
Returns the raw locator (without the prefix defining location strategy) representation.
|
inSeleniumRepresentation, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinSeleniumRepresentationpublic DefaultAttributeLocator(ElementLocator<E> elementLocator, Attribute attribute)
elementLocator - the element locatorattribute - the attributepublic String getRawLocator()
LocatorgetRawLocator in interface Locator<AttributeLocator<E extends ElementLocator<E>>>getRawLocator in class AbstractLocator<AttributeLocator<E extends ElementLocator<E>>>public ElementLocationStrategy getLocationStrategy()
LocatorgetLocationStrategy in interface Locator<AttributeLocator<E extends ElementLocator<E>>>public ElementLocator<E> getAssociatedElement()
AttributeLocatorgetAssociatedElement in interface AttributeLocator<E extends ElementLocator<E>>public Attribute getAttribute()
AttributeLocatorgetAttribute in interface AttributeLocator<E extends ElementLocator<E>>public AttributeLocator<E> format(Object... args)
LocatorSimplifiedFormat.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>>>args - the arguments for filling in the placeholdersCopyright © 2013 JBoss by Red Hat. All Rights Reserved.