public class QAFExtendedWebElement extends org.openqa.selenium.remote.RemoteWebElement implements QAFWebElementCommandListener, QAFWebElement
ElementMetaDataListener
,
ApplicationProperties.ELEMENT_GLOBAL_METADATA
,
ApplicationProperties.ELEMENT_ATTACH_DEFAULT_LISTENER
,
ApplicationProperties.QAF_LISTENERS
Modifier and Type | Class and Description |
---|---|
static class |
QAFExtendedWebElement.JsonConvertor |
Modifier and Type | Field and Description |
---|---|
protected org.openqa.selenium.By |
by |
protected boolean |
cacheable |
protected java.lang.String |
locator |
protected org.apache.commons.logging.Log |
logger |
protected QAFExtendedWebElement |
parentElement |
Modifier | Constructor and Description |
---|---|
|
QAFExtendedWebElement(org.openqa.selenium.By by) |
protected |
QAFExtendedWebElement(QAFExtendedWebDriver driver) |
|
QAFExtendedWebElement(QAFExtendedWebDriver driver,
org.openqa.selenium.By by) |
|
QAFExtendedWebElement(QAFExtendedWebDriver driver,
org.openqa.selenium.By by,
boolean cacheable) |
|
QAFExtendedWebElement(QAFExtendedWebElement parentElement,
org.openqa.selenium.By by) |
|
QAFExtendedWebElement(QAFExtendedWebElement parentElement,
java.lang.String locator) |
|
QAFExtendedWebElement(java.lang.String locator) |
Modifier and Type | Method and Description |
---|---|
void |
afterCommand(QAFExtendedWebElement element,
CommandTracker commandTracker) |
void |
assertAttribute(java.lang.String attr,
StringMatcher matcher,
java.lang.String... label) |
void |
assertAttribute(java.lang.String name,
java.lang.String value,
java.lang.String... label) |
void |
assertCssClass(java.lang.String name,
java.lang.String... label) |
void |
assertCssStyle(java.lang.String name,
java.lang.String value,
java.lang.String... label) |
void |
assertCssStyleColor(java.lang.String prop,
java.lang.String value,
java.lang.String... label)
Special method to validate css color property.
|
void |
assertDisabled(java.lang.String... label) |
void |
assertEnabled(java.lang.String... label) |
void |
assertNotAttribute(java.lang.String attr,
StringMatcher matcher,
java.lang.String... label) |
void |
assertNotAttribute(java.lang.String name,
java.lang.String value,
java.lang.String... label) |
void |
assertNotCssClass(java.lang.String name,
java.lang.String... label) |
void |
assertNotCssStyle(java.lang.String name,
java.lang.String value,
java.lang.String... label) |
void |
assertNotCssStyleColor(java.lang.String prop,
java.lang.String value,
java.lang.String... label)
Special method to validate css color property.
|
void |
assertNotPresent(java.lang.String... label) |
void |
assertNotSelected(java.lang.String... label) |
void |
assertNotText(java.lang.String text,
java.lang.String... label) |
<T> void |
assertNotValue(T value,
java.lang.String... label) |
void |
assertNotVisible(java.lang.String... label) |
void |
assertPresent(java.lang.String... label) |
void |
assertSelected(java.lang.String... label) |
void |
assertText(StringMatcher matcher,
java.lang.String... label) |
void |
assertText(java.lang.String text,
java.lang.String... label) |
<T> void |
assertValue(T value,
java.lang.String... label) |
void |
assertVisible(java.lang.String... label) |
void |
assetNotText(StringMatcher matcher,
java.lang.String... label) |
void |
beforeCommand(QAFExtendedWebElement element,
CommandTracker commandTracker)
This can be used as intercepter.
|
protected org.openqa.selenium.remote.Response |
execute(java.lang.String command,
java.util.Map<java.lang.String,?> parameters) |
<T> T |
executeAsyncScript(java.lang.String js) |
<T> T |
executeScript(java.lang.String js) |
protected org.openqa.selenium.remote.Response |
executeWitoutLog(java.lang.String command,
java.util.Map<java.lang.String,?> parameters) |
QAFExtendedWebElement |
findElement(org.openqa.selenium.By by) |
QAFExtendedWebElement |
findElement(java.lang.String loc) |
<T extends QAFExtendedWebElement> |
findElement(java.lang.String loc,
java.lang.Class<T> t) |
QAFWebElement |
findElementByCustomStretegy(java.lang.String strategy,
java.lang.String loc) |
java.util.List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
java.util.List<QAFWebElement> |
findElements(java.lang.String loc) |
<T extends QAFExtendedWebElement> |
findElements(java.lang.String loc,
java.lang.Class<T> t) |
java.util.List<org.openqa.selenium.WebElement> |
findElementsByCustomStretegy(java.lang.String strategy,
java.lang.String loc) |
protected org.openqa.selenium.By |
getBy() |
java.lang.String |
getCssValue(java.lang.String propertyName) |
java.lang.String |
getDescription(java.lang.String... label) |
java.lang.String |
getId() |
org.openqa.selenium.Point |
getLocation() |
java.util.Map<java.lang.String,java.lang.Object> |
getMetaData() |
WebDriverCommandLogger |
getReporter() |
org.openqa.selenium.Dimension |
getSize() |
QAFExtendedWebDriver |
getWrappedDriver() |
void |
givenNotPresent(java.lang.String... label) |
void |
givenPresent() |
int |
hashCode() |
protected void |
initLoc(java.lang.String locator) |
boolean |
isDisplayed() |
boolean |
isPresent() |
void |
onFailure(QAFExtendedWebElement element,
CommandTracker commandTracker)
This can be used to propagate exception.
|
void |
registerListeners(QAFWebElementCommandListener listener) |
protected void |
report(java.lang.String op,
boolean outcome,
java.lang.Object... args) |
void |
setAttribute(java.lang.String name,
java.lang.String value) |
protected void |
setBy(org.openqa.selenium.By by) |
void |
setDescription(java.lang.String description) |
void |
setId(java.lang.String id) |
void |
setParent(org.openqa.selenium.remote.RemoteWebDriver parent) |
java.lang.String |
toString() |
boolean |
verifyAttribute(java.lang.String attr,
StringMatcher matcher,
java.lang.String... label) |
boolean |
verifyAttribute(java.lang.String name,
java.lang.String value,
java.lang.String... label) |
boolean |
verifyCssClass(java.lang.String name,
java.lang.String... label) |
boolean |
verifyCssStyle(java.lang.String name,
java.lang.String value,
java.lang.String... label) |
boolean |
verifyCssStyleColor(java.lang.String prop,
java.lang.String value,
java.lang.String... label)
Special method to validate css color property.
|
boolean |
verifyDisabled(java.lang.String... label) |
boolean |
verifyEnabled(java.lang.String... label) |
boolean |
verifyNotAttribute(java.lang.String attr,
StringMatcher matcher,
java.lang.String... label) |
boolean |
verifyNotAttribute(java.lang.String name,
java.lang.String value,
java.lang.String... label) |
boolean |
verifyNotCssClass(java.lang.String name,
java.lang.String... label) |
boolean |
verifyNotCssStyle(java.lang.String name,
java.lang.String value,
java.lang.String... label) |
boolean |
verifyNotCssStyleColor(java.lang.String prop,
java.lang.String value,
java.lang.String... label)
Special method to validate css color property.
|
boolean |
verifyNotPresent(java.lang.String... label) |
boolean |
verifyNotSelected(java.lang.String... label) |
boolean |
verifyNotText(StringMatcher matcher,
java.lang.String... label) |
boolean |
verifyNotText(java.lang.String text,
java.lang.String... label) |
<T> boolean |
verifyNotValue(T value,
java.lang.String... label) |
boolean |
verifyNotVisible(java.lang.String... label) |
boolean |
verifyPresent(java.lang.String... label) |
boolean |
verifySelected(java.lang.String... label) |
boolean |
verifyText(StringMatcher matcher,
java.lang.String... label) |
boolean |
verifyText(java.lang.String text,
java.lang.String... label) |
<T> boolean |
verifyValue(T value,
java.lang.String... label) |
boolean |
verifyVisible(java.lang.String... label) |
void |
waitForAttribute(java.lang.String name,
java.lang.String value,
long... timeout) |
void |
waitForAttribute(java.lang.String attr,
StringMatcher value,
long... timeout) |
void |
waitForCssClass(java.lang.String name,
long... timeout) |
void |
waitForCssStyle(java.lang.String name,
java.lang.String value,
long... timeout) |
void |
waitForCssStyleColor(java.lang.String name,
java.lang.String value,
long... timeout)
Special method to wait for css color property.
|
void |
waitForDisabled(long... timeout) |
void |
waitForEnabled(long... timeout) |
void |
waitForNotAttribute(java.lang.String name,
java.lang.String value,
long... timeout) |
void |
waitForNotAttribute(java.lang.String attr,
StringMatcher value,
long... timeout) |
void |
waitForNotCssClass(java.lang.String name,
long... timeout) |
void |
waitForNotCssStyle(java.lang.String name,
java.lang.String value,
long... timeout) |
void |
waitForNotCssStyleColor(java.lang.String name,
java.lang.String value,
long... timeout)
Special method to wait for css color property.
|
void |
waitForNotPresent(long... timeout) |
void |
waitForNotSelected(long... timeout) |
void |
waitForNotText(java.lang.String text,
long... timeout) |
void |
waitForNotText(StringMatcher matcher,
long... timeout) |
void |
waitForNotValue(java.lang.Object value,
long... timeout) |
void |
waitForNotVisible(long... timeout) |
void |
waitForPresent(long... timeout) |
void |
waitForSelected(long... timeout) |
void |
waitForText(java.lang.String text,
long... timeout) |
void |
waitForText(StringMatcher matcher,
long... timeout) |
void |
waitForValue(java.lang.Object value,
long... timeout) |
void |
waitForVisible(long... timeout) |
clear, click, equals, findElement, findElementByClassName, findElementByCssSelector, findElementById, findElementByLinkText, findElementByName, findElementByPartialLinkText, findElementByTagName, findElementByXPath, findElements, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, getAttribute, getCoordinates, getRect, getScreenshotAs, getTagName, getText, isEnabled, isSelected, sendKeys, setFileDetector, setFoundBy, submit
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
protected final org.apache.commons.logging.Log logger
protected transient org.openqa.selenium.By by
protected QAFExtendedWebElement parentElement
protected java.lang.String locator
protected boolean cacheable
protected QAFExtendedWebElement(QAFExtendedWebDriver driver)
public QAFExtendedWebElement(org.openqa.selenium.By by)
by
- public QAFExtendedWebElement(java.lang.String locator)
locator
- : locator or json string in {locator:'id=eleId';desc:'sample
element'} format. locator can be selenium-1 style, for ex:
id=eleId or name=eleName ...public QAFExtendedWebElement(QAFExtendedWebElement parentElement, java.lang.String locator)
parentElement
- locator
- public QAFExtendedWebElement(QAFExtendedWebDriver driver, org.openqa.selenium.By by)
driver
- by
- public QAFExtendedWebElement(QAFExtendedWebDriver driver, org.openqa.selenium.By by, boolean cacheable)
driver
- by
- cacheable
- public QAFExtendedWebElement(QAFExtendedWebElement parentElement, org.openqa.selenium.By by)
protected void setBy(org.openqa.selenium.By by)
protected org.openqa.selenium.By getBy()
public java.lang.String getDescription(java.lang.String... label)
label
- optional element descriptionpublic void setDescription(java.lang.String description)
protected void initLoc(java.lang.String locator)
protected org.openqa.selenium.remote.Response execute(java.lang.String command, java.util.Map<java.lang.String,?> parameters)
execute
in class org.openqa.selenium.remote.RemoteWebElement
protected org.openqa.selenium.remote.Response executeWitoutLog(java.lang.String command, java.util.Map<java.lang.String,?> parameters)
public void setId(java.lang.String id)
setId
in class org.openqa.selenium.remote.RemoteWebElement
public java.lang.String getId()
getId
in interface org.openqa.selenium.internal.HasIdentity
getId
in class org.openqa.selenium.remote.RemoteWebElement
public org.openqa.selenium.Point getLocation()
getLocation
in interface org.openqa.selenium.WebElement
getLocation
in class org.openqa.selenium.remote.RemoteWebElement
public java.lang.String getCssValue(java.lang.String propertyName)
getCssValue
in interface org.openqa.selenium.WebElement
getCssValue
in class org.openqa.selenium.remote.RemoteWebElement
public boolean isDisplayed()
isDisplayed
in interface org.openqa.selenium.WebElement
isDisplayed
in class org.openqa.selenium.remote.RemoteWebElement
public org.openqa.selenium.Dimension getSize()
getSize
in interface org.openqa.selenium.WebElement
getSize
in class org.openqa.selenium.remote.RemoteWebElement
public boolean isPresent()
isPresent
in interface QAFWebElement
public int hashCode()
hashCode
in class org.openqa.selenium.remote.RemoteWebElement
public java.lang.String toString()
toString
in class org.openqa.selenium.remote.RemoteWebElement
public WebDriverCommandLogger getReporter()
public QAFExtendedWebDriver getWrappedDriver()
getWrappedDriver
in interface org.openqa.selenium.internal.WrapsDriver
getWrappedDriver
in class org.openqa.selenium.remote.RemoteWebElement
public QAFExtendedWebElement findElement(org.openqa.selenium.By by)
findElement
in interface org.openqa.selenium.SearchContext
findElement
in interface org.openqa.selenium.WebElement
findElement
in class org.openqa.selenium.remote.RemoteWebElement
public QAFExtendedWebElement findElement(java.lang.String loc)
findElement
in interface QAFWebElement
public java.util.List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements
in interface org.openqa.selenium.SearchContext
findElements
in interface org.openqa.selenium.WebElement
findElements
in class org.openqa.selenium.remote.RemoteWebElement
public java.util.List<QAFWebElement> findElements(java.lang.String loc)
findElements
in interface QAFWebElement
public <T extends QAFExtendedWebElement> java.util.List<T> findElements(java.lang.String loc, java.lang.Class<T> t)
public <T extends QAFExtendedWebElement> T findElement(java.lang.String loc, java.lang.Class<T> t)
public void afterCommand(QAFExtendedWebElement element, CommandTracker commandTracker)
afterCommand
in interface QAFWebElementCommandListener
public void beforeCommand(QAFExtendedWebElement element, CommandTracker commandTracker)
QAFWebElementCommandListener
CommandTracker.setResponce(Response)
beforeCommand
in interface QAFWebElementCommandListener
public void onFailure(QAFExtendedWebElement element, CommandTracker commandTracker)
QAFWebElementCommandListener
CommandTracker.getStage()
onFailure
in interface QAFWebElementCommandListener
public void waitForVisible(long... timeout)
waitForVisible
in interface QAFWebElement
public void waitForNotVisible(long... timeout)
waitForNotVisible
in interface QAFWebElement
public void waitForDisabled(long... timeout)
waitForDisabled
in interface QAFWebElement
public void waitForEnabled(long... timeout)
waitForEnabled
in interface QAFWebElement
public void waitForPresent(long... timeout)
waitForPresent
in interface QAFWebElement
public void waitForNotPresent(long... timeout)
waitForNotPresent
in interface QAFWebElement
public void waitForText(StringMatcher matcher, long... timeout)
waitForText
in interface QAFWebElement
public void waitForText(java.lang.String text, long... timeout)
waitForText
in interface QAFWebElement
public void waitForNotText(StringMatcher matcher, long... timeout)
waitForNotText
in interface QAFWebElement
public void waitForNotText(java.lang.String text, long... timeout)
waitForNotText
in interface QAFWebElement
public void waitForValue(java.lang.Object value, long... timeout)
waitForValue
in interface QAFWebElement
public void waitForNotValue(java.lang.Object value, long... timeout)
waitForNotValue
in interface QAFWebElement
public void waitForSelected(long... timeout)
waitForSelected
in interface QAFWebElement
public void waitForNotSelected(long... timeout)
waitForNotSelected
in interface QAFWebElement
public void waitForAttribute(java.lang.String name, java.lang.String value, long... timeout)
waitForAttribute
in interface QAFWebElement
public void waitForAttribute(java.lang.String attr, StringMatcher value, long... timeout)
waitForAttribute
in interface QAFWebElement
public void waitForNotAttribute(java.lang.String name, java.lang.String value, long... timeout)
waitForNotAttribute
in interface QAFWebElement
public void waitForNotAttribute(java.lang.String attr, StringMatcher value, long... timeout)
waitForNotAttribute
in interface QAFWebElement
public void waitForCssClass(java.lang.String name, long... timeout)
waitForCssClass
in interface QAFWebElement
public void waitForNotCssClass(java.lang.String name, long... timeout)
waitForNotCssClass
in interface QAFWebElement
public void waitForCssStyle(java.lang.String name, java.lang.String value, long... timeout)
waitForCssStyle
in interface QAFWebElement
public void waitForNotCssStyle(java.lang.String name, java.lang.String value, long... timeout)
waitForNotCssStyle
in interface QAFWebElement
public void waitForCssStyleColor(java.lang.String name, java.lang.String value, long... timeout)
QAFWebElement
#waitForCssStyle(String, String, String...)
waitForCssStyleColor
in interface QAFWebElement
name
- css style property for color to validate. For example: color, background-colorvalue
- expected value - valid color name or rgb or rgba or haxtimeout
- optional timeout and intervalpublic void waitForNotCssStyleColor(java.lang.String name, java.lang.String value, long... timeout)
QAFWebElement
#waitForNotCssStyle(String, String, String...)
waitForNotCssStyleColor
in interface QAFWebElement
name
- css style property for color to validate. For example: color, background-colorvalue
- expected value - valid color name or rgb or rgba or haxtimeout
- optional timeout and intervalpublic boolean verifyPresent(java.lang.String... label)
verifyPresent
in interface QAFWebElement
public boolean verifyNotPresent(java.lang.String... label)
verifyNotPresent
in interface QAFWebElement
label
- to provide in messagepublic boolean verifyVisible(java.lang.String... label)
verifyVisible
in interface QAFWebElement
public boolean verifyNotVisible(java.lang.String... label)
verifyNotVisible
in interface QAFWebElement
public boolean verifyEnabled(java.lang.String... label)
verifyEnabled
in interface QAFWebElement
public boolean verifyDisabled(java.lang.String... label)
verifyDisabled
in interface QAFWebElement
public boolean verifyText(java.lang.String text, java.lang.String... label)
verifyText
in interface QAFWebElement
public boolean verifyNotText(java.lang.String text, java.lang.String... label)
verifyNotText
in interface QAFWebElement
public boolean verifyNotText(StringMatcher matcher, java.lang.String... label)
verifyNotText
in interface QAFWebElement
public boolean verifyText(StringMatcher matcher, java.lang.String... label)
verifyText
in interface QAFWebElement
public <T> boolean verifyValue(T value, java.lang.String... label)
verifyValue
in interface QAFWebElement
public <T> boolean verifyNotValue(T value, java.lang.String... label)
verifyNotValue
in interface QAFWebElement
public boolean verifySelected(java.lang.String... label)
verifySelected
in interface QAFWebElement
public boolean verifyNotSelected(java.lang.String... label)
verifyNotSelected
in interface QAFWebElement
public boolean verifyAttribute(java.lang.String name, java.lang.String value, java.lang.String... label)
verifyAttribute
in interface QAFWebElement
public boolean verifyAttribute(java.lang.String attr, StringMatcher matcher, java.lang.String... label)
verifyAttribute
in interface QAFWebElement
public boolean verifyNotAttribute(java.lang.String name, java.lang.String value, java.lang.String... label)
verifyNotAttribute
in interface QAFWebElement
public boolean verifyNotAttribute(java.lang.String attr, StringMatcher matcher, java.lang.String... label)
verifyNotAttribute
in interface QAFWebElement
public boolean verifyCssClass(java.lang.String name, java.lang.String... label)
verifyCssClass
in interface QAFWebElement
public boolean verifyNotCssClass(java.lang.String name, java.lang.String... label)
verifyNotCssClass
in interface QAFWebElement
public boolean verifyCssStyle(java.lang.String name, java.lang.String value, java.lang.String... label)
verifyCssStyle
in interface QAFWebElement
public boolean verifyNotCssStyle(java.lang.String name, java.lang.String value, java.lang.String... label)
verifyNotCssStyle
in interface QAFWebElement
public boolean verifyCssStyleColor(java.lang.String prop, java.lang.String value, java.lang.String... label)
QAFWebElement
QAFWebElement.verifyCssStyle(String, String, String...)
verifyCssStyleColor
in interface QAFWebElement
prop
- css style property for color to validate. For example: color, background-colorvalue
- expected value - valid color name or rgb or rgba or haxlabel
- optional label to use in report. If not provided it will use description if availablepublic boolean verifyNotCssStyleColor(java.lang.String prop, java.lang.String value, java.lang.String... label)
QAFWebElement
QAFWebElement.verifyNotCssStyle(String, String, String...)
verifyNotCssStyleColor
in interface QAFWebElement
prop
- css style property for color to validate. For example: color, background-colorvalue
- expected value - valid color name or rgb or rgba or haxlabel
- optional label to use in report. If not provided it will use description if availablepublic void givenPresent()
givenPresent
in interface QAFWebElement
public void givenNotPresent(java.lang.String... label)
givenNotPresent
in interface QAFWebElement
public void assertPresent(java.lang.String... label)
assertPresent
in interface QAFWebElement
public void assertNotPresent(java.lang.String... label)
assertNotPresent
in interface QAFWebElement
public void assertVisible(java.lang.String... label)
assertVisible
in interface QAFWebElement
public void assertNotVisible(java.lang.String... label)
assertNotVisible
in interface QAFWebElement
public void assertEnabled(java.lang.String... label)
assertEnabled
in interface QAFWebElement
public void assertDisabled(java.lang.String... label)
assertDisabled
in interface QAFWebElement
public void assertText(java.lang.String text, java.lang.String... label)
assertText
in interface QAFWebElement
public void assertNotText(java.lang.String text, java.lang.String... label)
assertNotText
in interface QAFWebElement
public void assertText(StringMatcher matcher, java.lang.String... label)
assertText
in interface QAFWebElement
public void assetNotText(StringMatcher matcher, java.lang.String... label)
assetNotText
in interface QAFWebElement
public <T> void assertValue(T value, java.lang.String... label)
assertValue
in interface QAFWebElement
public <T> void assertNotValue(T value, java.lang.String... label)
assertNotValue
in interface QAFWebElement
public void assertSelected(java.lang.String... label)
assertSelected
in interface QAFWebElement
public void assertNotSelected(java.lang.String... label)
assertNotSelected
in interface QAFWebElement
public void assertAttribute(java.lang.String name, java.lang.String value, java.lang.String... label)
assertAttribute
in interface QAFWebElement
public void assertAttribute(java.lang.String attr, StringMatcher matcher, java.lang.String... label)
assertAttribute
in interface QAFWebElement
public void assertNotAttribute(java.lang.String name, java.lang.String value, java.lang.String... label)
assertNotAttribute
in interface QAFWebElement
public void assertNotAttribute(java.lang.String attr, StringMatcher matcher, java.lang.String... label)
assertNotAttribute
in interface QAFWebElement
public void assertCssClass(java.lang.String name, java.lang.String... label)
assertCssClass
in interface QAFWebElement
public void assertNotCssClass(java.lang.String name, java.lang.String... label)
assertNotCssClass
in interface QAFWebElement
public void assertCssStyle(java.lang.String name, java.lang.String value, java.lang.String... label)
assertCssStyle
in interface QAFWebElement
public void assertNotCssStyle(java.lang.String name, java.lang.String value, java.lang.String... label)
assertNotCssStyle
in interface QAFWebElement
public void assertCssStyleColor(java.lang.String prop, java.lang.String value, java.lang.String... label)
QAFWebElement
QAFWebElement.assertCssStyle(String, String, String...)
assertCssStyleColor
in interface QAFWebElement
prop
- css style property for color to validate. For example: color, background-colorvalue
- expected value - valid color name or rgb or rgba or haxlabel
- optional label to use in report. If not provided it will use description if availablepublic void assertNotCssStyleColor(java.lang.String prop, java.lang.String value, java.lang.String... label)
QAFWebElement
QAFWebElement.assertNotCssStyle(String, String, String...)
assertNotCssStyleColor
in interface QAFWebElement
prop
- css style property for color to validate. For example: color, background-colorvalue
- expected value - valid color name or rgb or rgba or haxlabel
- optional label to use in report. If not provided it will use description if availablepublic <T> T executeScript(java.lang.String js)
executeScript
in interface QAFWebElement
public <T> T executeAsyncScript(java.lang.String js)
executeAsyncScript
in interface QAFWebElement
public void setAttribute(java.lang.String name, java.lang.String value)
setAttribute
in interface QAFWebElement
public void registerListeners(QAFWebElementCommandListener listener)
protected void report(java.lang.String op, boolean outcome, java.lang.Object... args)
public void setParent(org.openqa.selenium.remote.RemoteWebDriver parent)
setParent
in class org.openqa.selenium.remote.RemoteWebElement
public java.util.Map<java.lang.String,java.lang.Object> getMetaData()
public QAFWebElement findElementByCustomStretegy(java.lang.String strategy, java.lang.String loc)
findElementByCustomStretegy
in interface FindsByCustomStretegy
public java.util.List<org.openqa.selenium.WebElement> findElementsByCustomStretegy(java.lang.String strategy, java.lang.String loc)
findElementsByCustomStretegy
in interface FindsByCustomStretegy
Copyright © 2000 Infostretch Corp.