Skip to main content

saveRecordingScreen

Overview

Use the saveRecordingScreen command to save a video to a file that was started with the startRecordingScreen command.

warning

The saveRecordingScreen command is only supported for mobile sessions that use Appium.

Usage

await browser.saveRecordingScreen(filepath);

Command Parameters

NameTypeDescription
filepathStringFull or relative path to the video file from the execution directory.

Usage Examples

it("should save a video", async ({ browser }) => {
await browser.startRecordingScreen();
await browser.$("~BUTTON").click();
await browser.saveRecordingScreen("./some/path/video.mp4");
});

References

We'd like to give credit to the original WebdriverIO docs article, from which we drew some information while writing our version.