Skip to main content

accept

Returns when the dialog has been accepted.

Usage

await dialog.accept(promptText)

Parameters

NameTypeDetails
promptText
optional
stringA text to enter into prompt. Does not cause any effects if the dialog's type is not prompt.

Example

dialogAccept.js
await dialog.accept();
await dialog.accept(promptText);

Welcome! How can I help?

WebdriverIO AI Copilot