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

type

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

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

Welcome! How can I help?

WebdriverIO AI Copilot