跳到主要内容

类型

返回对话框的类型,可以是 alert、beforeunload、confirm 或 prompt 之一。

用法​
await dialog.type()
示例​
dialogType.js
const type = await dialog.type();
返回值​
  • <string> returns: 对话框的类型

Welcome! How can I help?

WebdriverIO AI Copilot