Package at.willhaben.willtest.config
Interface SeleniumProvider<P extends SeleniumProvider,D extends org.openqa.selenium.WebDriver>
-
- Type Parameters:
P- concrete implementation class. Makes type safe method chaining in implementations possibleD- concrete implementation ofWebDriverprovided
- All Known Implementing Classes:
AbstractFirefoxProvider,AbstractSeleniumProvider,LocalFirefoxProvider,SeleniumHubFirefoxProvider
@Deprecated public interface SeleniumProvider<P extends SeleniumProvider,D extends org.openqa.selenium.WebDriver>Deprecated.Creates aWebDriverinstance with respecting all configuration participants given to it.
-
-
Field Summary
Fields Modifier and Type Field Description static longFIND_ELEMENT_TIMEOUTDeprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description PaddWebDriverConfigurationParticipant(WebDriverConfigurationParticipant<D> webDriverConfigurationParticipant)Deprecated.After creating a newWebDriverinstance, aSeleniumProviderimplementation should pass that instance to allWebDriverConfigurationParticipantto let them adjust it.<T extends org.openqa.selenium.support.events.WebDriverEventListener & org.junit.rules.TestRule>
PaddWebDriverEventListener(T listener)Deprecated.default org.openqa.selenium.support.ui.WebDriverWaitgetDefaultWebDriverWait()Deprecated.SinceWaitis something, what is fast always used in selenium tests, this method returns a default wait to be used with theWebDriver.PgetThis()Deprecated.Gives back the current instance as #P back to make method chaining possible in a type safe manner.org.openqa.selenium.WebDrivergetWebDriver()Deprecated.
-
-
-
Field Detail
-
FIND_ELEMENT_TIMEOUT
static final long FIND_ELEMENT_TIMEOUT
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getWebDriver
org.openqa.selenium.WebDriver getWebDriver()
Deprecated.- Returns:
- a new
WebDriverinstance
-
getDefaultWebDriverWait
default org.openqa.selenium.support.ui.WebDriverWait getDefaultWebDriverWait()
Deprecated.SinceWaitis something, what is fast always used in selenium tests, this method returns a default wait to be used with theWebDriver. 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 aWebDriverWaitwith 30L seconds timeout.- Returns:
- the default
WebDriverWaitinstance to be used with the WebDriver
-
addWebDriverConfigurationParticipant
P addWebDriverConfigurationParticipant(WebDriverConfigurationParticipant<D> webDriverConfigurationParticipant)
Deprecated.After creating a newWebDriverinstance, aSeleniumProviderimplementation should pass that instance to allWebDriverConfigurationParticipantto let them adjust it.- Parameters:
webDriverConfigurationParticipant- participant to be added to the list- Returns:
- the provider itself to make method chaining possible
-
addWebDriverEventListener
<T extends org.openqa.selenium.support.events.WebDriverEventListener & org.junit.rules.TestRule> P addWebDriverEventListener(T listener)
Deprecated.- Parameters:
listener- Implementation ofWebDriverEventListener&TestRuleadded to the list of listeners- Returns:
- the provider itself to make method chaining possible
-
getThis
P getThis()
Deprecated.Gives back the current instance as #P back to make method chaining possible in a type safe manner.- Returns:
- the current instance. Enables type safe method chaining in implementations
-
-