{"record":{"id":"ca9c94109d8c5b6b","repo":"microsoft/playwright","slug":"pass-acceptdownloads-true-when-you-are-creati","errorCode":null,"errorMessage":"Pass { acceptDownloads: true } when you are creating your browser context.","messagePattern":"Pass (.+?) when you are creating your browser context\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/playwright-core/src/server/artifact.ts","lineNumber":68,"sourceCode":"  async failureError(progress: Progress): Promise<string | null> {\n    return await progress.race(this._failureError());\n  }\n\n  async cancel(progress: Progress): Promise<void> {\n    return await progress.race(this._cancel());\n  }\n\n  async delete(progress: Progress): Promise<void> {\n    return await progress.race(this._delete());\n  }\n\n  localPath() {\n    return this._localPath;\n  }\n\n  private async _localPathAfterFinished(): Promise<string> {\n    if (this._unaccessibleErrorMessage)\n      throw new Error(this._unaccessibleErrorMessage);\n    await this._finishedPromise;\n    if (this._failureErrorValue)\n      throw this._failureErrorValue;\n    return this._localPath;\n  }\n\n  saveAs(progress: Progress, saveCallback: SaveCallback) {\n    if (this._unaccessibleErrorMessage)\n      throw new Error(this._unaccessibleErrorMessage);\n    if (this._deleted)\n      throw new Error(`File already deleted. Save before deleting.`);\n    if (this._failureErrorValue)\n      throw this._failureErrorValue;\n\n    if (this._finished) {\n      saveCallback(this._localPath).catch(() => {});\n      return;\n    }","sourceCodeStart":50,"sourceCodeEnd":86,"githubUrl":"https://github.com/microsoft/playwright/blob/c8fc3bf8d31542d59b4d4d9eaab1df93ff541dc6/packages/playwright-core/src/server/artifact.ts#L50-L86","documentation":"Error \"Pass { acceptDownloads: true } when you are creating your browser context.\" thrown in microsoft/playwright.","triggerScenarios":"Thrown at packages/playwright-core/src/server/artifact.ts:68 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"}