跳至主要內容

accept

當對話框被接受時返回。

用法
await dialog.accept(promptText)
參數
名稱類型詳細資訊
promptText
選填
字串要輸入到提示中的文字。如果對話框的類型不是提示,則不會產生任何效果。
範例
dialogAccept.js
await dialog.accept();
await dialog.accept(promptText);

歡迎!我能如何幫您?

WebdriverIO AI Copilot