Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Trying to wait for a webpage to load

$
0
0

I try to wait to a webpage is finish loading before continue, but it does not wait.

 

What do I do wrong?

 

#include <IE.au3>

Local $username = InputBox("Username", "Enter your AD username.", "username", "")
Local $passwd = InputBox("Security Check", "Enter your password for One4All.", "password", "*")
Local $oIE = _IECreate("URL")
Local $oForm = _IEFormGetObjByName($oIE, "mainForm")
Local $oText = _IEFormElementGetObjByName($oForm, "j_username")
_IEFormElementSetValue($oText, $username)
Local $oText = _IEFormElementGetObjByName($oForm, "j_password")
_IEFormElementSetValue($oText, $passwd)
Local $hwnd = _IEPropertyGet($oIE, "hwnd")
_IEAction($oForm, "focus")
ControlSend($hwnd, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "{Enter}")
_IELoadWaitTimeout(60000)
Local $osv = _IEGetObjById($oIE, "headerForm:menuUsers")
$osv.fireEvent("onclick")

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>