| Constructor and Description |
|---|
Resolvable() |
Resolvable(WebDriverHandle driverHandle) |
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebDriver |
getDriver()
Convenience getter for WebDriver.
|
protected WebDriverHandle |
getDriverHandle() |
Resolvable |
getParent() |
Properties |
getPlaceholders() |
org.openqa.selenium.WebElement |
getSelf() |
org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> |
getWait()
Convenience getter for the default WebDriverWait.
|
org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> |
getWait(String waitName)
Convenience getter for a named wait.
|
boolean |
isContainer() |
void |
loadData(Properties formValues)
Loads data into form inputs.
|
Resolvable |
prepareForResolving(WebDriverHandle driverHandle)
Initializes necessary properties of Resolvable, allows deferred initialization.
|
Resolvable |
resolve()
Resolves all resolvable elements, i.e.
|
Resolvable |
resolve(String... groups)
Resolves all resolvable elements, i.e.
|
protected void |
setDriverHandle(WebDriverHandle driverHandle) |
void |
setIsContainer(boolean isContainer) |
void |
setParent(Resolvable parent) |
Resolvable |
setPlaceholders(Properties placeholders) |
protected void |
setSelf(org.openqa.selenium.WebElement self) |
void |
setWait(org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> wait)
Convenience setter for the default FluentWait.
|
void |
setWait(String waitName,
org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> wait)
Convenience setter for a named WebDriverWait.
|
public Resolvable()
public Resolvable(WebDriverHandle driverHandle)
public org.openqa.selenium.WebElement getSelf()
protected void setSelf(org.openqa.selenium.WebElement self)
protected WebDriverHandle getDriverHandle()
protected void setDriverHandle(WebDriverHandle driverHandle)
public boolean isContainer()
public void setIsContainer(boolean isContainer)
public org.openqa.selenium.WebDriver getDriver()
WebDriver from the currently used WebDriverHandle.public org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> getWait()
FluentWait, usually WebDriverWait used for resolve() by default.public org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> getWait(String waitName)
waitName - name of the waitFluentWait of the given name, or null if no such wait exists.public void setWait(org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> wait)
wait - FluentWait to set and use for resolve() by default.public void setWait(String waitName, org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> wait)
waitName - name of the waitwait - FluentWait to set the named wait to.public Properties getPlaceholders()
public Resolvable setPlaceholders(Properties placeholders)
public Resolvable getParent()
public void setParent(Resolvable parent)
public Resolvable prepareForResolving(WebDriverHandle driverHandle)
driverHandle - handle keeping the instance of WebDriver the Resolvable should usepublic Resolvable resolve(String... groups)
Resolvable and ResolveBy elements, included in this Resolvable.groups - resolvable elements group names - only resolvable elements from listed groups will be resolvedResolveBy annotation)public Resolvable resolve()
Resolvable and ResolveBy elements, included in this Resolvable
and belonging to default group.ResolveBy annotation)public void loadData(Properties formValues)
formValues - mapping of input fields (class field of type WebElement representing
HTMl form elements) to input valuesCopyright © 2017. All Rights Reserved.