title: How to navigate a subframe inside a frameset using Selenium WebDriver with Python?
body: <p>The layout of the hmtl page is the following :</p>
  
  <pre><code>&lt;frameset framespacing="0" border="false" frameborder="0" rows="11%,8%,*"&gt;
      &lt;frame name="ENTETE" src="fr_entete.htm" scrolling="no" noresize="" marginwidth="0" marginheight="0"&gt;Some elements...&lt;/frame&gt;
      &lt;frameset framespacing="0" border="false" frameborder="0" cols="35%,7%,*"&gt;
          &lt;frame name="SOMMAIRE" src="fr_sommaire.htm" scrolling="no" noresize="" marginwidth="0" marginheight="0"&gt;Some elements...&lt;/frame&gt;
          &lt;frame name="OUTIL" src="fr_outil.htm" scrolling="no" noresize="" marginwidth="2" marginheight="0"&gt;Some elements...&lt;/frame&gt;
          &lt;frame name="LIBRE" src="fr_libre.asp" scrolling="no" noresize="" marginwidth="2" marginheight="0"&gt;Some elements...&lt;/frame&gt;
      &lt;/frameset&gt;
      &lt;frame name="TRAVAIL" src="cdc_rechgen.asp" scrolling="yes" noresize="" marginwidth="5" marginheight="0" frameborder="0"&gt;Some elements...&lt;/frame&gt;
  &lt;/frameset&gt;
  </code></pre>
  
  <p>I need to access to the frame "SOMMAIRE".
  This frame is a child of a frameset which is in turn a child of a frameset.
  I succeed in navigate to frame "TRAVAIL" and "ENTETE" directly, but I can't succeed in navigate the frame "SOMMAIRE"...</p>
  
  <p>I've tried :</p>
  
  <pre><code>driver.switch_to_default_content()
  driver.switch_to.frame("ENTETE")
  driver.switch_to.frame("SOMMAIRE")
  </code></pre>
  
  <p>But I always have the following exception :</p>
  
  <pre><code>selenium.common.exceptions.NoSuchFrameException: Message: no such frame
  </code></pre>
  
  <p>I've also read those link, but none of them help me to do what I want...</p>
  
  <p><a href="https://stackoverflow.com/questions/22732549/python-selenium-webdriver-navigating-nested-frame-sets">Link1</a> <a href="https://stackoverflow.com/questions/28207349/how-to-switch-subframe-inside-a-frameset-using-selenium-webdriver-io">Link2</a> <a href="https://stackoverflow.com/questions/15464808/how-to-navigate-a-subframe-inside-a-frameset-using-selenium-webdriver">Link3</a></p>
  
  <p>Thanks a lot.</p>