Skip to main content

stopRecord

The stopRecord action stops a video recording previously started by a record action and saves the video file.

This action takes a simple boolean value:

  • stopRecord: true: Stops the current recording.

Note: You must include a stopRecord: true step to finalize and save any recording started with the record action.

For comprehensive options, see the stopRecord reference.

Example

This example starts recording, performs an action, and then stops the recording.

{
"tests": [
{
"steps": [
{
"description": "Start recording.",
"record": "./output/session_video.mp4"
},
{
"description": "Navigate to the site.",
"goTo": "https://example.com"
},
{
"description": "Stop the recording.",
"stopRecord": true
}
]
}
]
}