Search the Community
Showing results for tags '_ieloadwait'.
Found 3 results
I have kept below line to wait for IE to load the site completely and continue. _IELoadWait($oIE) But, the code is continuing without waiting for it and I my execution is failing as the elements are not loaded completely. Any suggestions for alternate code to wait for the browser to load completely?
Hello, I have this simple script which automates google translate. #include <IE.au3> $oIE = _IECreate("http://translate.google.com/#en|fr|") $oForm = _IEFormGetObjByName($oIE, "text_form") $oText = _IEFormElementGetObjByName($oForm, "text") _IEFormElementSetValue($oText, "Hello") Sleep(3000) $id = _IEGetObjById($oIE, "result_box") $oText1 = _IEPropertyGet($id, "innertext") MsgBox(0,"Translate",$oText1) What i want to do it to remove the Sleep(3000) that there is in the script. But removing it the script doesnt works because the message box appears before geting the value of the innertext.... Is there a way to remove or replace the sleep time??? I tried _IELoadWait() but it doesnt work. Any tips?? Edit: Testing for the $oText1.value just add some more pointless lines to the script and leeds at adding sleep seconds until value is true...
When i try to wait loading of __IENavigate, that never wait Reproducer: #include <IE.au3> $oIE = _IECreate ('autoitscript.com') _IELoadWait($oIE) For $i=0 To 10 Step +1 __IENavigate($oIE, 'autoitscript.com', 1, 0x800) _IELoadWait($oIE) Next Sleep(5000) _IEQuit($oIE) Also i try to use $f_wait, 3th Parrameter of __IENavigate, but that also not work __IENavigate($o_object, $s_Url, $f_wait, $i_flags) Thanks for any tips