title: Switch to new window handle in Rspec
body: <p>I have tried different methods mentioned in links below but none is working.</p>
  
  <p>I prefer method where we can switch to windows using window title, thats also not working</p>
  
  <ul>
  <li><a href="http://elementalselenium.com/tips/4-work-with-multiple-windows" rel="nofollow noreferrer">http://elementalselenium.com/tips/4-work-with-multiple-windows</a></li>
  <li><a href="https://stackoverflow.com/questions/18983684/switch-to-popup-windows-in-cucumber-capybara">Switch to popup windows in cucumber, capybara</a></li>
  <li><a href="https://stackoverflow.com/questions/13282399/how-to-close-all-the-windows-before-the-next-test-in-a-test-suite">How to close all the windows before the next test in a test suite?</a></li>
  <li><a href="http://www.rubydoc.info/github/jnicklas/capybara/master/Capybara/Window" rel="nofollow noreferrer">http://www.rubydoc.info/github/jnicklas/capybara/master/Capybara/Window</a></li>
  <li><a href="https://github.com/teampoltergeist/poltergeist/issues/21" rel="nofollow noreferrer">https://github.com/teampoltergeist/poltergeist/issues/21</a></li>
  </ul>
  
  <p>PS: Its not a pop up its a new tab in same browser.</p>
  
  <p>I am using <code>watir webdriver</code></p>