Class VisitNoopAndCancelAlertsRule
- java.lang.Object
- 
- org.junit.rules.TestWatcher
- 
- com.atlassian.confluence.webdriver.rules.VisitNoopAndCancelAlertsRule
 
 
- 
- All Implemented Interfaces:
- org.junit.rules.TestRule
 
 public class VisitNoopAndCancelAlertsRule extends org.junit.rules.TestWatcherCancels any editor, after the test completes, to prevent getting stuck on modal dialogs due to the dirty page warning.
- 
- 
Constructor SummaryConstructors Constructor Description VisitNoopAndCancelAlertsRule()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinished(org.junit.runner.Description description)Navigates to a blank page and cleans up any dialogs attempting to block that navigation.
 
- 
- 
- 
Method Detail- 
finishedpublic 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:
- finishedin class- org.junit.rules.TestWatcher
 
 
- 
 
-