Skip to content

Instantly share code, notes, and snippets.

@bmabey
Forked from albertoperdomo/env.rb
Created August 27, 2010 19:59
Show Gist options
  • Save bmabey/554079 to your computer and use it in GitHub Desktop.
Save bmabey/554079 to your computer and use it in GitHub Desktop.
if ENV["SELENIUM_HEADLESS"] == 'true'
require "headless"
Before('@selenium') do
@headless = Headless.new
@headless.start
end
After('@selenium') do
@headless.destroy if @headless.present?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment