title: Selenium webdriver | driver().switchTo().defaultContent() method is not switching the control back to parent window from multiple child windows
body: <p>Selenium webdriver | <code>driver().switchTo().defaultContent()</code> method is not switching the control back to parent window from multiple child windows.</p>
  <p>I am facing problem with respect to no of windows and not frames. When I click a button on parent window say wp, a new web window say w1 is getting generated and eventually one more window gets generated say w2 , I want to switch to control to wp so I am using</p>
  <pre><code>driver.switchTo.defaultContent()
  </code></pre>
  <p>but its not switching control to parent window.</p>