Skip to content

Instantly share code, notes, and snippets.

@albertoperdomo
Created August 26, 2010 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save albertoperdomo/551297 to your computer and use it in GitHub Desktop.
Save albertoperdomo/551297 to your computer and use it in GitHub Desktop.
Run selenium headlessly on the CI server using the headless gem
Before('@selenium') do
if ENV["SELENIUM_HEADLESS"] == 'true'
require "headless"
@headless = Headless.new
@headless.start
end
end
After('@selenium') do
@headless.destroy if @headless.present?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment