1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00
capybara-webkit/lib/capybara/webkit.rb
2011-09-26 11:33:25 -03:00

11 lines
354 B
Ruby

require "capybara"
require "capybara/driver/webkit"
Capybara.register_driver :webkit do |app|
Capybara::Driver::Webkit.new(app)
end
Capybara.register_driver :webkit_debug do |app|
browser = Capybara::Driver::Webkit::Browser.new(:socket_class => Capybara::Driver::Webkit::SocketDebugger)
Capybara::Driver::Webkit.new(app, :browser => browser)
end