Created
August 26, 2010 12:17
-
-
Save albertoperdomo/551297 to your computer and use it in GitHub Desktop.
Run selenium headlessly on the CI server using the headless gem
This file contains hidden or 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
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