title: How to navigate back to current page from Frame in selenium webdriver
body: <p>How to navigate back to main page from an <code>iframe</code>?</p>
  
  <p>Example:</p>
  
  <pre><code>driver.SwitchTo.Frame(1);
  
  driver.SwitchTo().DefaultContent();
  </code></pre>
  
  <p>Is not working.
  Can anyone suggest any other way to retain control?</p>