The layout of the hmtl page is the following :
<frameset framespacing="0" border="false" frameborder="0" rows="11%,8%,*">
<frame name="ENTETE" src="fr_entete.htm" scrolling="no" noresize="" marginwidth="0" marginheight="0">Some elements...</frame>
<frameset framespacing="0" border="false" frameborder="0" cols="35%,7%,*">
<frame name="SOMMAIRE" src="fr_sommaire.htm" scrolling="no" noresize="" marginwidth="0" marginheight="0">Some elements...</frame>
<frame name="OUTIL" src="fr_outil.htm" scrolling="no" noresize="" marginwidth="2" marginheight="0">Some elements...</frame>
<frame name="LIBRE" src="fr_libre.asp" scrolling="no" noresize="" marginwidth="2" marginheight="0">Some elements...</frame>
</frameset>
<frame name="TRAVAIL" src="cdc_rechgen.asp" scrolling="yes" noresize="" marginwidth="5" marginheight="0" frameborder="0">Some elements...</frame>
</frameset>
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"...
I've tried :
driver.switch_to_default_content()
driver.switch_to.frame("ENTETE")
driver.switch_to.frame("SOMMAIRE")
But I always have the following exception :
selenium.common.exceptions.NoSuchFrameException: Message: no such frame
I've also read those link, but none of them help me to do what I want...
Thanks a lot.