Created
November 18, 2013 13:14
-
-
Save shuji/7527525 to your computer and use it in GitHub Desktop.
SeleniumFailedCapture
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SeleniumFailedCapture implements TestRule { | |
@Override | |
public Statement apply(final Statement base, Description description) { | |
return new Statement() { | |
@Override | |
public void evaluate() throws Throwable { | |
try { | |
base.evaluate(); | |
} catch (SeleniumException e) { | |
handleException(e); | |
} | |
} | |
}; | |
} | |
protected void handleException(SeleniumException e) { | |
// TODO 失敗した時の処理 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment