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

why a "modal" web popup windows stops my script?

$
0
0

HI

I am using IE.au3 to automate a web application.

at one point of the script, a strange behaviour occurs as follow:

I use the following code to wait that an object exists:

  1. Do ; waiting that an object is generated (by javascript or ajax)
  2.     Local $oPseudoButton = _IEGetObjById($oFrame,"button6_ManageDtls")
  3.     ConsoleWrite(".") ; to see that script is going on
  4.     Sleep(250) ; give some time to build
  5. Until IsObj($oPseudoButton)
  6.  
  7. ConsoleWrite(@CRLF&"Button exist"&@CRLF) ; OK button now exist
  8.  
  9. _IEAction ($oButton, "click") ; here a new modal window is opened
  10.                
  11.                 ; and script stop untill the modal windows will be closed
  12.  
  13. ConsoleWrite("The end")  ; only after the modal windows is closed this line is executed

but after that the click is performed by the _IEAction ($oButton, "click") statement
a new modal windows is opened with a web page inside;

the script stops in this point (line 18) and do not goes on until the modal windows is closed,

avoiding my script to do any further action.

is it normal that a modal windows stops the script?

how to free up the script from this strange interruption?

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles