P - concrete implementation class. Makes type safe method chaining in implementations possibleD - concrete implementation of WebDriver providedpublic interface SeleniumProvider<P extends SeleniumProvider,D extends org.openqa.selenium.WebDriver>
WebDriver instance with respecting all configuration participants given to it.
| Modifier and Type | Field and Description |
|---|---|
static long |
FIND_ELEMENT_TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
P |
addWebDriverConfigurationParticipant(WebDriverConfigurationParticipant<D> webDriverConfigurationParticipant)
After creating a new
WebDriver instance, a SeleniumProvider implementation should pass that instance
to all WebDriverConfigurationParticipant to let them adjust it. |
default org.openqa.selenium.support.ui.WebDriverWait |
getDefaultWebDriverWait()
Since
Wait is something, what is fast always used in selenium tests,
this method returns a default wait to be used with the WebDriver. |
P |
getThis()
Gives back the current instance as #P back to make method chaining possible in a type safe manner.
|
D |
getWebDriver() |
static final long FIND_ELEMENT_TIMEOUT
D getWebDriver()
WebDriver instancedefault org.openqa.selenium.support.ui.WebDriverWait getDefaultWebDriverWait()
Wait is something, what is fast always used in selenium tests,
this method returns a default wait to be used with the WebDriver. This way there is no need to create
different instances in page objects with different timeouts. This makes easy to change all timeouts at a single
place later. Default implementation returns a WebDriverWait with 30L seconds
timeout.WebDriverWait instance to be used with the WebDriverP addWebDriverConfigurationParticipant(WebDriverConfigurationParticipant<D> webDriverConfigurationParticipant)
WebDriver instance, a SeleniumProvider implementation should pass that instance
to all WebDriverConfigurationParticipant to let them adjust it.webDriverConfigurationParticipant - participant to be added to the listP getThis()
Copyright © 2017 willhaben internet service GmbH & Co KG. All rights reserved.