ModalDialog

Requires the custom dialog style ("window.dialogStyle": "custom"), which ExTester enables by default, so this works out of the box. It is only a concern if you override the framework’s default settings.
Look up
Section titled “Look up”const dialog = new ModalDialog();Get the contents
Section titled “Get the contents”// get the message (the bold text)const message = await dialog.getMessage();
// get the details (the not so bold text)const details = await dialog.getDetails();
// get the button web elementsconst buttons = await dialog.getButtons();Push a button
Section titled “Push a button”// push button with a given titleawait dialog.pushButton("Save All");Close the dialog
Section titled “Close the dialog”Close the dialog using the ‘cross’ button.
await dialog.close();