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 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 |
|---|---|
protected boolean |
canResume()
Waits for site pop up message to disappear to allow the drone to resume
operations on the page.
|
protected boolean |
canResume(String elementCss,
long waitTime)
Waits for expected element to be displayed and available for action
before drone resumes operations on the page.
|
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)
Find operation as found in the WebDrone find.
|
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 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 limitprotected boolean canResume(String elementCss, long waitTime)
elementCss - String css identifier for the elementwaitTime - timer in millisecondspublic 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 - SelectorWebElementprotected boolean canResume()
waitTime - timer in millisecondsCopyright © 2013. All Rights Reserved.