|
|
|
|
- Checking the function
- Difference of message type
EmulateDialog (Function) In french: PiloteDialogue Emulates the next call to Dialog and automatically clicks the button passed as parameter. Caution: This function can only be used when running an automated test. In this case, the test checks whether the dialog is called and responds automatically. This function has no action when it is not used with automatic tests. // Automatically close the next Dialog message box // The answer on which the click will be performed is "Save" (return value = 1) EmulateDialog(1) Â // Process // ... SWITCH Dialog("Do you want to save the modifications?") // Save CASE 1 // ... Â // Don't save CASE 2 // ... END // The message is automatically closed via a click performed on "Save"
Syntax
EmulateDialog(<Return value>)
<Return value>: Integer Value of button in the Dialog window on which the click must be performed. Remarks Difference of message type The order of the EmulateXXX functions must respect the display order of Error, Info, ... Otherwise, a fatal error will occur. Component: wd290testexe.dll
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|