title: "driver.switchTo.window() " doesn't help in switching windows/tabs
body: <p>In my test I have four tabs opened in same browser window. I want that I iterate through all 
  tabs, perform some task in each tab and quit entire session using <code>driver.quit();</code>.
  <p>This is what I tried:<br>Pre-Condition: All four tabs are open.<p></p>
  
  <pre><code>ArrayList&lt;String&gt; windowhandles = new ArrayList&lt;String&gt;(driver.getWindowHandles());
          System.out.println("got handles");
          for (int i = 0; i&lt;windowhandles.size();i++ ){
              System.out.println("inside windowhandles for loop");
              driver.switchTo().window(windowhandles.get(i));
              System.out.println(driver.getTitle());
              /*** perform some tasks ***/     
  
          }driver.quit();
  </code></pre>
  
  <p>Above code will remain at the first tab and print <code>page title</code> of all tabs, without switching to them. Why its not switching, what wrong am I doing?</p>