Package at.willhaben.willtest.config
Interface WebDriverConfigurationParticipant<D extends org.openqa.selenium.WebDriver>
-
- Type Parameters:
D- concrete webDriver implementation class
- All Known Implementing Classes:
DefaultFirefoxConfigurationParticipant,ElementScrollBehaviourConfigurator,FileDetectorConfigurator,TimeoutsConfigurationParticipant,WebDriverLog
@Deprecated public interface WebDriverConfigurationParticipant<D extends org.openqa.selenium.WebDriver>Deprecated.Makes possible to adjust the behaviour of theWebDriverinstances created by aSeleniumProvider. UseSeleniumProvider.addWebDriverConfigurationParticipant(WebDriverConfigurationParticipant)to make yourWebDriverConfigurationParticipantwork.Example: setting window size using
postConstruct(WebDriver)method.It makes possible to encapsulate some configuration aspects, which you can reuse with different kind of
WebDriverinstances created by different implementations ofSeleniumProvider.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidaddDesiredCapabilities(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)Deprecated.Can add desired capabilities to aWebDriverbefore it gets created.default voidpostConstruct(D webDriver)Deprecated.Can make some changes on a newly createdWebDriverbefore it gets used.
-
-
-
Method Detail
-
addDesiredCapabilities
default void addDesiredCapabilities(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
Deprecated.Can add desired capabilities to aWebDriverbefore it gets created.- Parameters:
desiredCapabilities- desired capabilities object, which can be adjusted
-
postConstruct
default void postConstruct(D webDriver)
Deprecated.Can make some changes on a newly createdWebDriverbefore it gets used.- Parameters:
webDriver- webdriver to be changed
-
-