microsoft/playwright · error · Error

Pass { acceptDownloads: true } when you are creating your br

Error message

Pass { acceptDownloads: true } when you are creating your browser context.

What it means

Error "Pass { acceptDownloads: true } when you are creating your browser context." thrown in microsoft/playwright.

Source

Thrown at packages/playwright-core/src/server/artifact.ts:68

  async failureError(progress: Progress): Promise<string | null> {
    return await progress.race(this._failureError());
  }

  async cancel(progress: Progress): Promise<void> {
    return await progress.race(this._cancel());
  }

  async delete(progress: Progress): Promise<void> {
    return await progress.race(this._delete());
  }

  localPath() {
    return this._localPath;
  }

  private async _localPathAfterFinished(): Promise<string> {
    if (this._unaccessibleErrorMessage)
      throw new Error(this._unaccessibleErrorMessage);
    await this._finishedPromise;
    if (this._failureErrorValue)
      throw this._failureErrorValue;
    return this._localPath;
  }

  saveAs(progress: Progress, saveCallback: SaveCallback) {
    if (this._unaccessibleErrorMessage)
      throw new Error(this._unaccessibleErrorMessage);
    if (this._deleted)
      throw new Error(`File already deleted. Save before deleting.`);
    if (this._failureErrorValue)
      throw this._failureErrorValue;

    if (this._finished) {
      saveCallback(this._localPath).catch(() => {});
      return;
    }

View on GitHub (pinned to c8fc3bf8d3)

When it happens

Trigger: Thrown at packages/playwright-core/src/server/artifact.ts:68 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/ca9c94109d8c5b6b. Report an issue: GitHub.