Package at.willhaben.willtest.rule
Class WebDriverLog<P extends SeleniumProvider<P,D>,D extends org.openqa.selenium.WebDriver>
- java.lang.Object
-
- at.willhaben.willtest.rule.TestFailureAwareRule
-
- at.willhaben.willtest.rule.WebDriverLog<P,D>
-
- All Implemented Interfaces:
WebDriverConfigurationParticipant<D>,org.junit.rules.TestRule
@Deprecated public class WebDriverLog<P extends SeleniumProvider<P,D>,D extends org.openqa.selenium.WebDriver> extends TestFailureAwareRule implements WebDriverConfigurationParticipant<D>
Deprecated.In case of test error dumps the logs of selenium into the standard logger. See alsoLogContextand at.willhaben.willtest.log4j.LogFileRule
-
-
Constructor Summary
Constructors Constructor Description WebDriverLog(SeleniumProvider<P,D> seleniumProvider)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddDesiredCapabilities(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)Deprecated.Can add desired capabilities to aWebDriverbefore it gets created.protected voidonError(org.junit.runner.Description description, java.lang.Throwable testFailure)Deprecated.Called if the test has thrown an error.-
Methods inherited from class at.willhaben.willtest.rule.TestFailureAwareRule
after, apply, before
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface at.willhaben.willtest.config.WebDriverConfigurationParticipant
postConstruct
-
-
-
-
Constructor Detail
-
WebDriverLog
public WebDriverLog(SeleniumProvider<P,D> seleniumProvider)
Deprecated.
-
-
Method Detail
-
onError
protected void onError(org.junit.runner.Description description, java.lang.Throwable testFailure)Deprecated.Description copied from class:TestFailureAwareRuleCalled if the test has thrown an error. By default it does nothing.- Overrides:
onErrorin classTestFailureAwareRule- Parameters:
description- junit test description objecttestFailure- any error from the test
-
addDesiredCapabilities
public void addDesiredCapabilities(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
Deprecated.Description copied from interface:WebDriverConfigurationParticipantCan add desired capabilities to aWebDriverbefore it gets created.- Specified by:
addDesiredCapabilitiesin interfaceWebDriverConfigurationParticipant<P extends SeleniumProvider<P,D>>- Parameters:
desiredCapabilities- desired capabilities object, which can be adjusted
-
-