@Deprecated public class TimeoutsConfigurationParticipant<D extends org.openqa.selenium.WebDriver> extends Object implements WebDriverConfigurationParticipant<D>
webDriver.manage().timeouts().
Please note, that if some of the 3 timeouts are not defined, then it will use the defaults settings of the given
WebDriver implementation.
If all timeouts are set through this class, then there is a possibility to get the current timeout settings of the
WebDriver, which is not possible out of the box in Selenium.
| Constructor and Description |
|---|
TimeoutsConfigurationParticipant()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends SeleniumProvider<T,D>> |
addTo(T seleniumProvider)
Deprecated.
Adds this configurator to the given
SeleniumProvider |
Optional<Duration> |
getImplicitWait()
Deprecated.
Returns the current implicit wait in milliseconds.
|
Optional<Duration> |
getPageLoadTimeout()
Deprecated.
Returns the current page load timeout in milliseconds.
|
Optional<Duration> |
getScriptTimeout()
Deprecated.
Returns the current script timeout in milliseconds.
|
void |
postConstruct(D webDriver)
Deprecated.
Can make some changes on a newly created
WebDriver before it gets used. |
org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver> |
waitOverridingImplicitWait(org.openqa.selenium.WebDriver webDriver,
int seconds)
Deprecated.
If there is an implicit wait set, then you might need to wait for a shorter period.
|
TimeoutsConfigurationParticipant<D> |
withImplicitWait(Duration implicitWait)
Deprecated.
See
WebDriver.Timeouts.implicitlyWait(long, TimeUnit) |
TimeoutsConfigurationParticipant<D> |
withoutImplicitWait()
Deprecated.
This will reset implicit wait to the
WebDriver implementation default |
TimeoutsConfigurationParticipant<D> |
withoutPageLoadTimeout()
Deprecated.
This will reset page load timeout to the
WebDriver implementation default |
TimeoutsConfigurationParticipant<D> |
withoutScriptTimeout()
Deprecated.
This will reset script timeout to the
WebDriver implementation default |
TimeoutsConfigurationParticipant<D> |
withPageLoadTimeout(Duration pageLoadTimeout)
Deprecated.
See
WebDriver.Timeouts.pageLoadTimeout(long, TimeUnit) |
TimeoutsConfigurationParticipant<D> |
withScriptTimeout(Duration scriptTimeout)
Deprecated.
See
WebDriver.Timeouts.setScriptTimeout(long, TimeUnit) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDesiredCapabilitiespublic TimeoutsConfigurationParticipant()
public void postConstruct(D webDriver)
WebDriverConfigurationParticipantWebDriver before it gets used.postConstruct in interface WebDriverConfigurationParticipant<D extends org.openqa.selenium.WebDriver>webDriver - webdriver to be changedpublic Optional<Duration> getImplicitWait()
public Optional<Duration> getScriptTimeout()
public Optional<Duration> getPageLoadTimeout()
public org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver> waitOverridingImplicitWait(org.openqa.selenium.WebDriver webDriver,
int seconds)
webDriver - webdriver to be usedseconds - timeout in secondsWait instance, which set the implicit wait temporarily to 0.public <T extends SeleniumProvider<T,D>> T addTo(T seleniumProvider)
SeleniumProviderT - type of the selenium providerseleniumProvider - "this" will be added as configuration participant to the given providerseleniumProvider to enable method chainingpublic TimeoutsConfigurationParticipant<D> withImplicitWait(Duration implicitWait)
WebDriver.Timeouts.implicitlyWait(long, TimeUnit)implicitWait - durationpublic TimeoutsConfigurationParticipant<D> withScriptTimeout(Duration scriptTimeout)
WebDriver.Timeouts.setScriptTimeout(long, TimeUnit)scriptTimeout - durationpublic TimeoutsConfigurationParticipant<D> withPageLoadTimeout(Duration pageLoadTimeout)
WebDriver.Timeouts.pageLoadTimeout(long, TimeUnit)pageLoadTimeout - durationpublic TimeoutsConfigurationParticipant<D> withoutImplicitWait()
WebDriver implementation defaultpublic TimeoutsConfigurationParticipant<D> withoutPageLoadTimeout()
WebDriver implementation defaultpublic TimeoutsConfigurationParticipant<D> withoutScriptTimeout()
WebDriver implementation defaultCopyright © 2019 willhaben internet service GmbH & Co KG. All rights reserved.