ExpectAndAnswerMessageBox (open)

Expect a message-box to open after a trigger-call, and answer it

Syntax

LOADLIB "mod::tollium/lib/testframework.whlib";

ASYNC FUNCTION ExpectAndAnswerMessageBox(STRING answer, MACRO PTR call, RECORD options)

Parameters

STRING answer

Button to press in the message box

MACRO PTR call

Call to trigger the messagebox

RECORD options
BOOLEAN awaitcall

Expect the trigger call to return after answering the messagebox

STRING messagemask

Like-mask for the expected message

STRING namemask

Like-mask for the name of the messagebox

Return value

expectcallreturn

Expect call that requires the trigger-call to have finished (not usable when using awaitcall)