Capybara-Webkit close webkit_server
Asked Answered
H

1

9

I am using Capybara-Webkit to automate some work on a website. This is done in the background in a Resque task. After some executions there are quiet a lot webkit_server processes, that weren't closed by Capybara. So how can I force Capybara to close it at the end?

session = Capybara::Session.new(:webkit)
session.visit URL
session.click_button(BUTTON)
....
Homologate answered 8/11, 2012 at 11:49 Comment(2)
+1 I've had this problem as well.Godunov
could you post some more code? How do you call your script?Euphroe
M
2

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

Milkman answered 28/11, 2015 at 19:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.