saveRecordingScreen
Save a video started by startRecordingScreen
command to file.
information
This command is only supported for mobile sessions running on Appium.
Usage
browser.saveRecordingScreen(filepath)
Parameters
Name | Type | Details |
---|---|---|
filepath | String | full 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');
});