public class IgnoreBrowserRule extends Object implements org.junit.rules.TestRule
IgnoreBrowser
annotation and will skip the test if the current running driver
is in the list of browsers to ignore.
Also skips tests annotated with RequireBrowser if they require a
particular browser that is not currently running.
Currently still supports the deprecated annotations IgnoreBrowser and
TestBrowser but this will be dropped in the future. Please make
sure to move to the equivalents from the pageobjects-api module.
Requires surefire 2.7.2 or higher to show skipped tests in test results.| Constructor and Description |
|---|
IgnoreBrowserRule()
Deprecated.
use explicit browser/supplier, or get an instance of this rule using the page binder framework. Scheduled
for removal in 3.0
|
IgnoreBrowserRule(Browser currentBrowser) |
IgnoreBrowserRule(com.google.common.base.Supplier<Browser> currentBrowserSupplier) |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
@Inject public IgnoreBrowserRule(Browser currentBrowser)
public IgnoreBrowserRule(com.google.common.base.Supplier<Browser> currentBrowserSupplier)
@Deprecated public IgnoreBrowserRule()
ProductContextRunnerCopyright © 2015 Atlassian. All rights reserved.