I'm working on a page with nested frames, and am unable to access a child frame. Brief outline of HTML source:
<html>
<head></head>
<frameset id="0">
<frame name="name">
<frameset cols="10%,20%" id="01">
<frame name="mid1">
<frame name="mid2" scrolling="auto" src="chkclineversion.asp" marginwidth="0" marginheight="0">
</frameset>
<frame name="bot">
</frameset>
</html>
I need to access the frame named "mid2". This frame is nested within a frameset which is in turn nested within the main frameset.
I've tried the following codes but they do work
driver.switch_to_frame("mid2") #direct reference to nested frame name
driver.switch_to_frame(1)
driver.switch_to_frame("mid2") #switch to subframe by index and then attempt to reference "mid2". This gives me a no such frame exception1
Am I missing something obvious?
I've checked this link but it does not clarify my question.
Thanks