Waits for a browser-dialog-message (e.g. alert) and closes it.
#Include <FF.au3>
_FFDialogWait($sText[, $sTitle = ""[, $sClose = "close"[, $iTimeOut = 10000]]])
Parameters
| $sText | Text in the dialog window. (Substring) |
||||||||||
| $sTitle | (Optional) Title of the dialog window. (Substring) | ||||||||||
| $sClose |
|
||||||||||
| $iTimeOut | = 10000 (Default) how long the window is searched (minimum 1000ms) | ||||||||||
Return Value
| Success: | Returns 1 |
| Failure: | Returns 0 and sets @ERROR |
| @ERROR: | 0 ($_FF_ERROR_Success) 4 ($_FF_ERROR_InvalidValue) 6 ($_FF_ERROR_Timeout) |
Remarks
Does not work with dialogs which are directly via onClick opened.
Related
_FFLoadWait
Example
#Include <FF.au3> _FFConnect() If _FFIsConnected() Then _FFOpenURL("http://ff-au3-example.thorsten-willert.de/") _FFImageClick("test_bild_1", "alt") Sleep(3000) ; to see the alert _FFDialogWait("bild") MsgBox(64,"","Alert closed ...") EndIf