Skip to content

Instantly share code, notes, and snippets.

@RohitRox
Last active December 15, 2015 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RohitRox/5212538 to your computer and use it in GitHub Desktop.
Save RohitRox/5212538 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'capybara'
require 'capybara/dsl'
Capybara.run_server = false
Capybara.current_driver = :selenium
Capybara.app_host = 'http://...'
module MyCapybara
class FireBro
include Capybara::DSL
def action(params)
...
end
end
end
fire_it = MyCapybara::FireBro.new
fire_it.action(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment