Skip to content

Instantly share code, notes, and snippets.

@darkseed
Created August 10, 2011 11:36
Show Gist options
  • Save darkseed/1136617 to your computer and use it in GitHub Desktop.
Save darkseed/1136617 to your computer and use it in GitHub Desktop.
Cucumber keeping the browser open
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