public class HtmlElement extends Object
WebElement. The class allows to
look within the WebElement by polling every 100 milliseconds to see
if the elements if found.| Modifier and Type | Field and Description |
|---|---|
protected long |
defaultWaitTime |
protected WebDrone |
drone |
protected long |
maxTime |
| Constructor and Description |
|---|
HtmlElement(WebDrone drone)
Constructor.
|
HtmlElement(org.openqa.selenium.WebElement webElement,
WebDrone drone)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
click()
Wrapper to web emlement click with added check to see if dom event
complete.
|
String |
domEventCompleted()
Checks if page event action completed.
|
org.openqa.selenium.WebElement |
find(org.openqa.selenium.By by)
Deprecated.
as of 2.5 use WebDrone.find instead.
|
protected List<org.openqa.selenium.WebElement> |
findAllWithWait(org.openqa.selenium.By by)
Helper method to find a list of
WebElement with a time limit in
milliseconds. |
org.openqa.selenium.WebElement |
findAndWait(org.openqa.selenium.By by)
Helper method to find a
WebElement with a time limit in
milliseconds. |
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by)
Wrapper to
WebElement findElement. |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by)
Wrapper to
WebElement findElements. |
String |
getAttribute(String attType)
Wrapper to
WebElement get attribute value of web element. |
WebDrone |
getDrone() |
org.openqa.selenium.WebElement |
getWebElement() |
void |
setWebElement(org.openqa.selenium.WebElement webElement) |
protected final long maxTime
protected final long defaultWaitTime
protected WebDrone drone
public HtmlElement(WebDrone drone)
webElement - WebElementpublic HtmlElement(org.openqa.selenium.WebElement webElement,
WebDrone drone)
webElement - WebElementpublic WebDrone getDrone()
public org.openqa.selenium.WebElement findAndWait(org.openqa.selenium.By by)
WebElement with a time limit in
milliseconds. During the wait period it will check for the element every
100 millisecond.by - By criteria to search bymillisecond - time limitWebElement HTML elementpublic String getAttribute(String attType)
WebElement get attribute value of web element.attType - String html attribute class, id or namepublic org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
WebElement findElement.By - by selector type.WebElement html elementpublic List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
WebElement findElements.By - by selector type.WebElement html elementprotected List<org.openqa.selenium.WebElement> findAllWithWait(org.openqa.selenium.By by)
WebElement with a time limit in
milliseconds. During the wait period it will check for the element every
100 millisecond.by - By criteria to search bymillisecond - time limitpublic org.openqa.selenium.WebElement getWebElement()
public void setWebElement(org.openqa.selenium.WebElement webElement)
public String domEventCompleted()
public String click()
public org.openqa.selenium.WebElement find(org.openqa.selenium.By by)
by - SelectorWebElementCopyright © 2014. All rights reserved.