Skip to main content
🇺🇦  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

Save a video started by startRecordingScreen command to file.

info

This command is only supported for mobile sessions running on Appium.

Usage
browser.saveRecordingScreen(filepath)
Parameters
NameTypeDetails
filepathStringfull or relative to the execution directory path to the generated video
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: video buffer

Welcome! How can I help?

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