I got this answer from the AutoIt forum here
There are two frames, and the form is in the second frame, so use $o_frame = _IEFrameGetCollection($oIE, 1) to get the second frame (index 1 is the second frame, index 0 will be the first).
Then get the form from the frame using: $o_form = _IEFormGetObjByName($o_frame, "loginentry")
So, the section of your code will look like this:
; get pointers to the login form and username and password fields $o_frame = _IEFrameGetCollection($oIE, 1) $o_form = _IEFormGetObjByName($o_frame, "loginentry") $o_login = _IEFormElementGetObjByName($o_form, "USERID") $o_password = _IEFormElementGetObjByName($o_form, "PASSW")
USERID and PASSW are hidden fields, so you wonβt see them filled. If the form is not submitted properly, use the names of the visible fields:
$o_login = _IEFormElementGetObjByName($o_form, "posterior") $o_password = _IEFormElementGetObjByName($o_form, "fossa"
source share