Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to close browser with Capybara?

I have a situation when I'm using (using :selenium driver) multiple browsers with Capybara to test my front-end. How can I close some of them using Capybara, when they are not needed?

like image 556
thesis Avatar asked Oct 23 '11 12:10

thesis


1 Answers

Also:

page.driver.browser.close

Definitely works for Selenium, though it looks like possibly not for capybara-webkit.

like image 89
lobati Avatar answered Oct 13 '22 16:10

lobati