com.atlassian.confluence.webdriver.rules
Class CancelAnyAlert

java.lang.Object
  extended by org.junit.rules.TestWatcher
      extended by com.atlassian.confluence.webdriver.rules.CancelAnyAlert
All Implemented Interfaces:
org.junit.rules.TestRule

public class CancelAnyAlert
extends org.junit.rules.TestWatcher


Constructor Summary
CancelAnyAlert()
           
 
Method Summary
 void finished(org.junit.runner.Description description)
          Navigates to a blank page and cleans up any dialogs attempting to block that navigation.
 
Methods inherited from class org.junit.rules.TestWatcher
apply, failed, starting, succeeded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancelAnyAlert

public CancelAnyAlert()
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 class org.junit.rules.TestWatcher


Copyright © 2003-2014 Atlassian. All Rights Reserved.