title: getWindowHandles in selenium is always returning size as 1 even though multiple instances of chrome are open
body: <p>I have multiple chrome windows open, but getWindowHandles in selenium is always returning size as 1 even though multiple instances of chrome are open.</p>
  
  <p>here is the code:</p>
  
  <pre><code>    System.setProperty("webdriver.chrome.driver", "C:/Downloads/New folder/chromedriver.exe");
      WebDriver driver = new ChromeDriver();
      driver.get("https://www.google.com/");
  
      driver = new ChromeDriver();
      driver.get("https://www.rediffmail.com/");
  
      driver = new ChromeDriver();
      driver.get("https://www.facebook.com/");
  
      Set&lt;String&gt; ids = driver.getWindowHandles();
      System.out.println(ids.size());     
      System.out.println(ids);
  </code></pre>
  
  <p>and here is the output:</p>
  
  <pre><code>1
  [CDwindow-DBDAD89956F46A4DE6DC3F16E70D79A6]
  </code></pre>
  
  <p>any idea as to why this is happening?
  or perhaps maybe im doing something incorrectly.</p>
  
  <p>Im using Selenium-Java "selenium-java-3.13.0"</p>
  
  <p>JDK "10.0.2"</p>
  
  <p>Chrome "Version 68.0.3440.75 (Official Build) (64-bit)"</p>