title: How to get handlers for all open windows and browsers browsers on selenium?
body: <p>I am searching for a method that will return the urls and handlers <strong>across all open windows, tabs, and browsers,</strong> not just the one that is currently being run in selenium. My code below only returns the current window that was instantiated by running the current test.</p>
  <pre><code>String originalWindowHandle = driver.getWindowHandle();
  System.out.println(&quot;original Window handles are: &quot; + originalWindowHandle);
  System.out.println(&quot;Title of original Page:&quot; + driver.getTitle());  
  java.util.Set&lt;java.lang.String&gt; windowHandles = driver.getWindowHandles();
  System.out.println(windowHandles);
  int count = windowHandles.size();
  //if (count &gt; 1) {
  for (String window: windowHandles) {
          String url = driver.getCurrentUrl();
          System.out.println(&quot;current url is: &quot; + url);
      }       
  //}
  </code></pre>