Aller au contenu principal
🇺🇦  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

saveRecordingScreen

Enregistrer une vidéo démarrée par la commande startRecordingScreen dans un fichier.

info

Cette commande est uniquement prise en charge pour les sessions mobiles exécutées sur Appium.

Usage
browser.saveRecordingScreen(filepath)
Parameters
NameTypeDetails
filepathStringchemin complet ou relatif au répertoire d'exécution vers la vidéo générée
Example
saveRecordingScreen.js
it('should save a video', async () => {
await browser.startRecordingScreen();
await $('~BUTTON').click();
await browser.saveRecordingScreen('./some/path/video.mp4');
});
Returns
  • <Buffer> return: buffer vidéo

Welcome! How can I help?

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