UNPKG

webdriverio

Version:

Next-gen browser and mobile automation test framework for Node.js

21 lines • 595 B
export {}; /** * Dismisses the dialog and returns when the dialog has been handled. * * :::info * Only works with browser dialogs (via BiDi protocol). For mobile native dialogs, * use [`browser.dismissDialog`](/docs/api/mobile/dismissDialog) instead. * ::: * * <example> :dialogDismiss.js // Listen for the dialog event to get the dialog object browser.on('dialog', async (dialog) => { console.log(dialog.message()); // prints: 'Are you sure?' await dialog.dismiss(); }); * </example> * * @alias dialog.dismiss */ //# sourceMappingURL=dismiss.d.ts.map