Zum Hauptinhalt springen
🇺🇦  We stand with the people of Ukraine. We encourage compassion, and hope for peace.   🇺🇦
Please support humanitarian efforts for the Ukraine crisis through the International Committee of the Red Cross! #StandWithUkraine

pause

Pausiert die Ausführung für einen bestimmten Zeitraum. Es wird empfohlen, diesen Befehl nicht zu verwenden, um darauf zu warten, dass ein Element erscheint. Um instabile Testergebnisse zu vermeiden, ist es besser, Befehle wie waitForExist oder andere waitFor* Befehle zu verwenden.

Verwendung
browser.pause(milliseconds)
Parameter
NameTypeDetails
millisecondsnumberZeit in ms
Beispiel
pause.js
it('should pause the execution', async () => {
const starttime = new Date().getTime()
await browser.pause(3000)
const endtime = new Date().getTime()
console.log(endtime - starttime) // outputs: 3000
});

Welcome! How can I help?

WebdriverIO AI Copilot
Morty Proxy This is a proxified and sanitized view of the page, visit original site.