Thanks to visit codestin.com
Credit goes to webdriver.io

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();
Returns
  • <string> returns: The type of the dialog

Welcome! How can I help?

WebdriverIO AI Copilot