Пытаюсь написать скрипт для заполнения поля логин и пароль, но при выполнение выдается ошибка.
Вот мой код:
Вот так выглядит ошибка при выполнение:
--> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_ClientDisconnected (-2147417848, Browser has been deleted prior to operation.)
--> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_InvalidObjectType ()
"C:\Program Files (x86)\AutoIt3\Include\IE.au3" (1784) : ==> The requested action with this object has failed.:
Return SetError($_IESTATUS_Success, 0, $oObject.document)
Return SetError($_IESTATUS_Success, 0, $oObject^ ERROR
>Exit code: 1 Time: 0.8149
В чем может быть ошибка подскажите пожалуйста.
Вот мой код:
Код:
#include <IE.au3>
$oIE = _IECreate ("https://report.med.cap.ru")
_IELoadWait($oIE)
$oForm = _IEFormGetCollection ($oIE, 1)
$oLogin = _IEFormElementGetCollection ($oForm, "_uid")
$oPass = _IEFormElementGetCollection ($oForm, "_pwd")
_IEFormElementSetValue ($oLogin, "Login")
_IEFormElementSetValue ($oPass, "123")
Вот так выглядит ошибка при выполнение:
--> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_ClientDisconnected (-2147417848, Browser has been deleted prior to operation.)
--> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_InvalidObjectType ()
"C:\Program Files (x86)\AutoIt3\Include\IE.au3" (1784) : ==> The requested action with this object has failed.:
Return SetError($_IESTATUS_Success, 0, $oObject.document)
Return SetError($_IESTATUS_Success, 0, $oObject^ ERROR
>Exit code: 1 Time: 0.8149
В чем может быть ошибка подскажите пожалуйста.