title: Can you close all open windows in capybara?
body: <p>So when I run my tests individually, they work great. However, when I run my feature (multiple tests) my code is failing.<br>
  This is because when capybara exists, not all of my windows are closing and therefore my selenium drivers don't know which window to use.</p>
  
  <p>Basically, what is happening is that my test is opening multiple windows. This is happening because my tests are clicking links which open new windows and checking the content in the new windows. Even though I am saying <code>page.quit</code> at the end of each test, this function isn't closing all open windows (closes active window but not the original window). When the 2nd test runs, it uses the originally create window, but when it goes to open the new pop up, it uses the wrong window.</p>
  
  <p>How can I ensure that a new browser is being used during each test and all windows from the previous test are closed.<br>
  I am currently using <code>page.reset!</code> and <code>page.quit</code>.<br>
  Not sure, but can I say <code>session.quit</code> to close all open browser windows?</p>