Capybara-webkit close webkit_server

I use Capybara-Webkit to automate some of the work on the website. This runs in the background in the Resque task. After some executions, there are quiet webkit_server processes that were not closed by Capybara. So how can I get Capybara to close it at the end?

session = Capybara::Session.new(:webkit) session.visit URL session.click_button(BUTTON) .... 
+8
ruby-on-rails-3 capybara capybara-webkit resque
source share
1 answer

You should use page.quit at the end of each test case to close all browser instances.

+2
source share

All Articles