T - the type of locator which can be derived from this locatorpublic abstract class AbstractElementLocator<T extends ElementLocator<T>> extends AbstractLocator<T> implements ElementLocator<T>
| Constructor and Description |
|---|
AbstractElementLocator(String locator)
Constructs locator for given string representation
|
| Modifier and Type | Method and Description |
|---|---|
ElementLocator<T> |
format(Object... args)
Formats the locator with placeholders given by
SimplifiedFormat. |
AttributeLocator<T> |
getAttribute(Attribute attribute)
Returns the default locator for attribute belongs to this locator.
|
getRawLocator, inSeleniumRepresentation, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocationStrategygetRawLocatorinSeleniumRepresentationpublic AbstractElementLocator(String locator)
locator - the string representation of locatorpublic AttributeLocator<T> getAttribute(Attribute attribute)
getAttribute in interface ElementLocator<T extends ElementLocator<T>>attribute - type for obtaining from this locatorpublic ElementLocator<T> format(Object... args)
LocatorSimplifiedFormat.format in interface ElementLocator<T extends ElementLocator<T>>format in interface Locator<T extends ElementLocator<T>>format in class AbstractLocator<T extends ElementLocator<T>>args - the arguments for filling in the placeholdersCopyright © 2013 JBoss by Red Hat. All Rights Reserved.