Hi.
 
	Is there a way in autoit script to wait while browser's html document fully loaded, instead of putting script in Sleep?
 
	I have this code:
 
	        
 
Sleep(8000)
$oDocument=_UIA_getFirstObjectOfElement($oIE,$cDocumentWindow, $treescope_subtree)
Sleep(8000)
If not isobj($oDocument) Then
   _UIA_DumpThemAll($oIE,$treescope_subtree)
Else
   ......
EndIf
	 
 
	I do not like this - Sleep(8000). Sometimes it takes 2 seconds to load, sometimes it takes over 8 seconds...
 
	I would like to have something that would wait when html document is ready/loaded.
 
	Thank you.