title: How to open new window instead of new tab in chrome using webdriver?
body: <p>In order to automate my test application, I need to open few links in a new window instead of tab. Keep this in mind that I am not opening the links in new tab explicitly, it is my web application which automatically lands user in the new tab after clicking on the link.</p>
  
  <p><strong>Why do I want to do this?</strong></p>
  
  <p>Because running the tests on chrome browser closes the main tab and keeps open the newly opened tab. Which ultimately fails the tests.So ultimate intention is to open the new window instead of tab and handle it properly using <code>driver.getWindowHandles()</code>.</p>
  
  <p><strong>What have I done so far?</strong></p>
  
  <p>I tried to find some kind of capability setting or profile in Chrome which automatically opens the links in a new window which are supposed to be open in a tab.But did not find any convincing solution most of the suggestions are CTRL+CLICK ON THE LINK.</p>