Skip to main content

type

Returns dialog's type, can be one of alert, beforeunload, confirm or prompt.

Usage
await dialog.type()
Example
dialogType.js
const type = await dialog.type();

Welcome! How can I help?

WebdriverIO AI Copilot