mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
Fixed webkit_debug driver initialization
This commit is contained in:
parent
126411337e
commit
cb32871bcb
1 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,8 @@ Capybara.register_driver :webkit do |app|
|
||||||
end
|
end
|
||||||
|
|
||||||
Capybara.register_driver :webkit_debug do |app|
|
Capybara.register_driver :webkit_debug do |app|
|
||||||
browser = Capybara::Driver::Webkit::Browser.new(:socket_class => Capybara::Driver::Webkit::SocketDebugger)
|
connection = Capybara::Driver::Webkit::Connection.new(
|
||||||
|
:socket_class => Capybara::Driver::Webkit::SocketDebugger)
|
||||||
|
browser = Capybara::Driver::Webkit::Browser.new(connection)
|
||||||
Capybara::Driver::Webkit.new(app, :browser => browser)
|
Capybara::Driver::Webkit.new(app, :browser => browser)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue