Created
August 10, 2011 11:36
-
-
Save darkseed/1136617 to your computer and use it in GitHub Desktop.
Cucumber keeping the browser open
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
After do |scenario| | |
KEEP_OPEN = true if scenario.status == :pending or scenario.status == :undefined | |
end | |
at_exit do | |
browser.close if not KEEP_OPEN | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment