跳到主要内容

接受

当对话框被接受时返回。

用法
await dialog.accept(promptText)
参数
名称类型详情
promptText
可选
string输入到提示框中的文本。如果对话框类型不是提示框,则不会产生任何效果。
示例
dialogAccept.js
await dialog.accept();
await dialog.accept(promptText);

Welcome! How can I help?

WebdriverIO AI Copilot