メインコンテンツにスキップ

type

ダイアログのタイプを返します。alertbeforeunloadconfirm、またはpromptのいずれかです。

使用方法
await dialog.type()
dialogType.js
const type = await dialog.type();
戻り値
  • <string> returns: ダイアログのタイプ

Welcome! How can I help?

WebdriverIO AI Copilot