Hello everyone. Longtime reader/lurker, and due to the wealth of information on this site have never needed to make a post until now. To the amazing AutoIt community: thank you!
I'm having a similar problem as the OP with IE.au3 and frames. I'm working with the following frameset:
<frameset name="top" rows="60,*" border="0" frameSpacing="0" frameBorder="0" >
<frame frameborder=0 border=0 frameSpacing=0 src="TopMenu.aspx" name="top" noresize>
<FRAMESET cols="180,*" frameSpacing="0" frameBorder="0" >
<frame name="menubar" src="MainMenu.aspx" scrolling="auto" noresize>
<frame name="body" src="StartPage.aspx" frameborder="1" marginwidth="5" noresize>
</FRAMESET>
<noframes>
<p>This page requires frames, but your browser does not support them.</p>
</noframes>
</frameset>As you can see I have a frameset within a frameset. Perhaps that's the problem... does IE.au3 not support this?
Here are some code snippets I've tested and the outcome:
$oIE = _IECreate ("http://siteurl/")
$oMenuFrame = _IEFrameGetObjByName ($oIE , "menubar")
MsgBox(0, "test", "success")Result: The message box never displays. No errors in the SciTE console. Script just stops.
$oIE = _IECreate ("http://siteurl/")
$oTopFrame = _IEFrameGetObjByName ($oIE, "top")
$oMenuFrame = _IEFrameGetObjByName ($oTopFrame , "menubar")
MsgBox(0, "test", "success")Result: The message box never displays. No errors in the SciTE console. Script just stops.
$oIE = _IECreate ("http://siteurl/")
$oFrames = _IEFrameGetCollection($oIE)
MsgBox(0, "test", @extended)Result: The message box does display, with the number 3. So it is detecting the frames to some extent.
$oIE = _IECreate ("http://siteurl/")
$oFrames = _IEFrameGetCollection($oIE)
$iNumFrames = @extended
For $i = 0 to ($iNumFrames - 1) ;this is the example loop from the help file
$oFrame = _IEFrameGetCollection ($oIE, $i)
MsgBox(0, "Frame Info", _IEPropertyGet ($oFrame, "locationurl"))
Next
MsgBox(0, "test", "complete")Result: Only the "complete" message box displays. The loop doesn't seem to do anything even though I know iNumFrames is 3.
Any assistance or guidance would be greatly appreciated.
Thanks!