Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Register :webkit_debug driver

  • Loading branch information...
commit a4538b620f3637b62182b0f52eff978238bdb784 1 parent e1e9944
@gabebw gabebw authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/capybara-webkit.rb
View
4 lib/capybara-webkit.rb
@@ -5,3 +5,7 @@
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
Please sign in to comment.
Something went wrong with that request. Please try again.