Zum Hauptinhalt springen

Typ

Gibt den Typ des Dialogs zurück, kann einer von alert, beforeunload, confirm oder prompt sein.

Verwendung
await dialog.type()
Beispiel
dialogType.js
const type = await dialog.type();
Gibt zurück
  • <string> returns: Der Typ des Dialogs

Welcome! How can I help?

WebdriverIO AI Copilot