public class AttributeRetriever extends AbstractRetriever<String> implements Retriever<String>
| Modifier | Constructor and Description |
|---|---|
protected |
AttributeRetriever()
Instantiates a new attribute retriever.
|
| Modifier and Type | Method and Description |
|---|---|
AttributeRetriever |
attributeLocator(AttributeLocator<?> attributeLocator)
Gets a AttributeRetriever object preset with attributeLocator to given value.
|
Convertor<String,String> |
getConvertor()
Uses
PassOnConvertor to pass the JavaScript result to result value. |
static AttributeRetriever |
getInstance()
Factory method.
|
JavaScript |
getJavaScriptRetrieve()
JavaScript expression to retrieve attribute value from element given by attributeLocator
|
String |
retrieve()
Retrieves the attribute value from element given by attributeLocator
|
getValue, initializeValue, isValueChanged, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValue, initializeValue, setValueprotected AttributeRetriever()
public String retrieve()
retrieve in interface SeleniumRetriever<String>retrieve in class AbstractRetriever<String>public JavaScript getJavaScriptRetrieve()
getJavaScriptRetrieve in interface JavaScriptRetriever<String>public static AttributeRetriever getInstance()
public AttributeRetriever attributeLocator(AttributeLocator<?> attributeLocator)
attributeLocator - the attribute locator to presetpublic Convertor<String,String> getConvertor()
PassOnConvertor to pass the JavaScript result to result value.getConvertor in interface JavaScriptRetriever<String>Copyright © 2012 JBoss by Red Hat. All Rights Reserved.