Class VisitNoopAndCancelAlertsRule
- java.lang.Object
-
- org.junit.rules.TestWatcher
-
- com.atlassian.confluence.webdriver.selenium3.rules.VisitNoopAndCancelAlertsRule
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class VisitNoopAndCancelAlertsRule extends org.junit.rules.TestWatcher
Cancels any editor, after the test completes, to prevent getting stuck on modal dialogs due to the dirty page warning.
-
-
Constructor Summary
Constructors Constructor Description VisitNoopAndCancelAlertsRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finished(org.junit.runner.Description description)
Navigates to a blank page and cleans up any dialogs attempting to block that navigation.
-
-
-
Method Detail
-
finished
public void finished(org.junit.runner.Description description)
Navigates to a blank page and cleans up any dialogs attempting to block that navigation. Note that code.google.com/p/chromedriver/issues/detail?id=161 makes us need to catch an exception.- Overrides:
finished
in classorg.junit.rules.TestWatcher
-
-