T - the type of locator which can be derived from this locatorpublic abstract class AbstractLocator<T extends Locator<T>> extends Object implements Locator<T>
Abstract implementation of locator.
Able to return the locator as string for use in Selenium inSeleniumRepresentation()
| Constructor and Description |
|---|
AbstractLocator(String locator)
The locator constructor
|
| Modifier and Type | Method and Description |
|---|---|
Locator<T> |
format(Object... args)
Formats the locator with placeholders given by
SimplifiedFormat. |
String |
getRawLocator()
Returns the raw locator (without the prefix defining location strategy) representation.
|
String |
inSeleniumRepresentation()
Returns Selenium's string representation of this object
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocationStrategypublic AbstractLocator(String locator)
locator - the string representation of locator (without the locator type prefix)public String getRawLocator()
LocatorgetRawLocator in interface Locator<T extends Locator<T>>public Locator<T> format(Object... args)
LocatorSimplifiedFormat.public String inSeleniumRepresentation()
SeleniumRepresentableinSeleniumRepresentation in interface SeleniumRepresentableCopyright © 2013 JBoss by Red Hat. All Rights Reserved.