{"record":{"id":"b4f0cccdc14ac848","repo":"microsoft/playwright","slug":"video-recording-has-not-been-started","errorCode":null,"errorMessage":"Video recording has not been started.","messagePattern":"Video recording has not been started\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/playwright-core/src/client/video.ts","lineNumber":37,"sourceCode":"\nimport type { Connection } from './connection';\nimport type * as api from '../../types/types';\n\nexport class Video extends EventEmitter implements api.Video {\n  private _artifact: Artifact | undefined;\n  private _isRemote = false;\n\n  constructor(connection: Connection, artifact: Artifact | undefined) {\n    super();\n    this._isRemote = connection.isRemote();\n    this._artifact = artifact;\n  }\n\n  async path(): Promise<string> {\n    if (this._isRemote)\n      throw new Error(`Path is not available when connecting remotely. Use saveAs() to save a local copy.`);\n    if (!this._artifact)\n      throw new Error('Video recording has not been started.');\n    return this._artifact._initializer.absolutePath;\n  }\n\n  async saveAs(path: string): Promise<void> {\n    if (!this._artifact)\n      throw new Error('Video recording has not been started.');\n    return await this._artifact.saveAs(path);\n  }\n\n  async delete(): Promise<void> {\n    if (this._artifact)\n      await this._artifact.delete();\n  }\n}\n","sourceCodeStart":19,"sourceCodeEnd":52,"githubUrl":"https://github.com/microsoft/playwright/blob/c8fc3bf8d31542d59b4d4d9eaab1df93ff541dc6/packages/playwright-core/src/client/video.ts#L19-L52","documentation":"Error \"Video recording has not been started.\" thrown in microsoft/playwright.","triggerScenarios":"Thrown at packages/playwright-core/src/client/video.ts:37 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c8fc3bf8d31542d59b4d4d9eaab1df93ff541dc6","analyzedAt":"2026-08-12T07:26:36.950Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}