microsoft/playwright · error · Error

Video recording has not been started.

Error message

Video recording has not been started.

What it means

Error "Video recording has not been started." thrown in microsoft/playwright.

Source

Thrown at packages/playwright-core/src/client/video.ts:37

import type { Connection } from './connection';
import type * as api from '../../types/types';

export class Video extends EventEmitter implements api.Video {
  private _artifact: Artifact | undefined;
  private _isRemote = false;

  constructor(connection: Connection, artifact: Artifact | undefined) {
    super();
    this._isRemote = connection.isRemote();
    this._artifact = artifact;
  }

  async path(): Promise<string> {
    if (this._isRemote)
      throw new Error(`Path is not available when connecting remotely. Use saveAs() to save a local copy.`);
    if (!this._artifact)
      throw new Error('Video recording has not been started.');
    return this._artifact._initializer.absolutePath;
  }

  async saveAs(path: string): Promise<void> {
    if (!this._artifact)
      throw new Error('Video recording has not been started.');
    return await this._artifact.saveAs(path);
  }

  async delete(): Promise<void> {
    if (this._artifact)
      await this._artifact.delete();
  }
}

View on GitHub (pinned to c8fc3bf8d3)

When it happens

Trigger: Thrown at packages/playwright-core/src/client/video.ts:37 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of microsoft/playwright@c8fc3bf8d3 (2026-08-12). Data as JSON: /api/errors/b4f0cccdc14ac848. Report an issue: GitHub.