; Add include file in program... #include "IE.au3" _IEErrorHandlerRegister() ; Initialize IE browser object... $o_IE = _IECreate("about:blank", 0, 1, 1, 1) $hGUI = WinGetHandle("[Class:IEFrame]") ; Initialize variables... $URLData = "192.168.1.2\test1.html" ; Load URL in browser... _IENavigate ($o_IE, $URLData) ;;;; ; Page 1 ;;;; ; Get Browser form details... $oForm = _IEFormGetCollection($o_IE, 0) $oFormFields = _IEFormElementGetCollection($oForm) ; Find field name in HTML form... For $oFormField in $oFormFields If $oFormField.type = "text" Then _IEFormElementSetValue($oFormField, "A") ElseIf $oFormField.type = "select-one" Then _IEFormElementOptionSelect($oFormField, "b", 1 , "byText", 1) EndIf Next _IEFormSubmit($oForm, 0) ;;;; ; Page 2 ;;;; WinActivate($hGUI) $o_IE1 = _IEAttach($hGUI, "hwnd") ; Get Browser form details... $oForm1 = _IEFormGetCollection($o_IE1, 0) $oFormFields1 = _IEFormElementGetCollection($oForm1) ; Find field name in HTML form... For $oFormField1 in _IEFormElementGetCollection($oForm1) ;MsgBox(0, "POPUP 1", $oFormField1.type) ;MsgBox(0, "POPUP 1", $oFormField1.name) If $oFormField1.type = "text" Then ;MsgBox(0, "POPUP 2", $oFormField1.type) _IEFormElementSetValue($oFormField1, "C") ;MsgBox(0, "POPUP 2", "Done") ElseIf $oFormField1.type = "select-one" Then ;MsgBox(0, "POPUP 3", $oFormField1.type) _IEFormElementOptionSelect($oFormField1, "D", 1 , "byText", 1) ;MsgBox(0, "POPUP 3", "Done") EndIf Next _IEFormSubmit($oForm, 0)