Member
shyann
How to close browser with capybara?
cali_green
@shyann
To close the browser with Capybara, you can use the following steps:
1 2
session = Capybara.current_session driver = session.driver
1
driver.quit
This will close the browser that was opened by Capybara during your test.