title: How to switch frames through Selenium in Chrome and Firefox browser?
body: <p>In My case I have Many Frame In The APP Under Test And many popUp So I need Each time  To go Into The Popup And return To original Windows :
  <strong>chrome :</strong></p>
  
  <pre><code>ExemplePg.getWindowHandle(); 
  driver.switchTo().defaultContent()
  driver.switchTo().frame(sylobHomepg.get_FrameLevel2());
  </code></pre>
  
  <p><strong>FireFox:</strong><br>
   I need to add "defaultContent" with:</p>
  
  <pre><code> ExemplePg.getWindowHandle();
   driver.switchTo().defaultContent();
   driver.switchTo().frame(sylobHomepg.get_FrameLevel2());
  </code></pre>
  
  <p>Questions:</p>
  
  <ol>
  <li>Why I have  this difference between chrome and Firefox?? </li>
  <li>My job in Jenkins Work Well, many times and sometimes I have an error: <code>No such windows</code>?</li>
  </ol>
  
  <p>Update: With chrome i am using just:</p>
  
  <pre><code>ExemplePg.getWindowHandle(); 
  driver.switchTo().defaultContent();
  driver.switchTo().frame(sylobHomepg.get_FrameLevel2()); 
  </code></pre>
  
  <p>Without default and its work and with firefox not I need to add switch default before switch frame.</p>