Search the Community
Showing results for tags '_IEFormGetCollection'.
Found 1 result
An IE program that I have been using for over a year has started failing. I have traced the problem to this code snipet. The errors happens when I try to get a FORM object from a FRAME object. The message box reports that the $oFrame is an object, but the error says [ Variable must be of type "Object" ] Local $iNumFrames $oFrames = _IEFrameGetCollection ($oIE) $iNumFrames = @extended For $i = 0 to ($iNumFrames - 1) $oFrame = _IEFrameGetCollection ($oIE, $i ) msgBox(1, " var type " & VarGetType( $oFrame) , @error ) $oForms = _IEFormGetCollection ($oFrame) Next The reported errors are: "C:\Program Files\AutoIt3\Include\IE.au3" (903) : ==> Variable must be of type "Object".: Return SetError($_IEStatus_Success, $oTemp.forms.length, $oTemp.forms) Return SetError($_IEStatus_Success, $oTemp^ ERROR ->11:15:29 AutoIt3.exe ended.rc:1 +>11:15:29 AutoIt3Wrapper Finished.. >Exit code: 1 Time: 17.812 Thank you in advance for suggestions. Jim Rumbaugh