{"record":{"id":"b7d260bba5500e98","repo":"microsoft/playwright","slug":"method-not-implemented-b7d260","errorCode":null,"errorMessage":"Method not implemented","messagePattern":"Method not implemented","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/playwright-core/src/server/webkit/webview/wvPage.ts","lineNumber":765,"sourceCode":"      } as any;\n    }\n    return `(${polyfill.toString()})();`;\n  }\n\n  async _updateBootstrapScript(): Promise<void> {\n    await this._updateState('Page.setBootstrapScript', { source: this._calculateBootstrapScript() });\n  }\n\n  async closePage(): Promise<void> {\n    await this._session.sendMayFail('Runtime.evaluate', {\n      expression: 'window.close()',\n      emulateUserGesture: true,\n    } as any);\n    this._session.connection.close();\n  }\n\n  async setBackgroundColor(color?: { r: number; g: number; b: number; a: number; }): Promise<void> {\n    throw new Error('Method not implemented');\n  }\n\n  private validateScreenshotDimension(side: number, omitDeviceScaleFactor: boolean) {\n    // Cairo based implementations (Linux and Windows) have hard limit of 32767\n    // (see https://github.com/microsoft/playwright/issues/16727).\n    if (process.platform === 'darwin')\n      return;\n    if (!omitDeviceScaleFactor && this._page.browserContext._options.deviceScaleFactor)\n      side = Math.ceil(side * this._page.browserContext._options.deviceScaleFactor);\n    if (side > 32767)\n      throw new Error('Cannot take screenshot larger than 32767 pixels on any dimension');\n  }\n\n  async takeScreenshot(progress: Progress, format: string, documentRect: types.Rect | undefined, viewportRect: types.Rect | undefined, quality: number | undefined, fitsViewport: boolean, scale: 'css' | 'device'): Promise<Buffer> {\n    const rect = (documentRect || viewportRect)!;\n    const omitDeviceScaleFactor = scale === 'css';\n    if (omitDeviceScaleFactor)\n      throw new Error('css screenshots are not implemented');","sourceCodeStart":747,"sourceCodeEnd":783,"githubUrl":"https://github.com/microsoft/playwright/blob/c8fc3bf8d31542d59b4d4d9eaab1df93ff541dc6/packages/playwright-core/src/server/webkit/webview/wvPage.ts#L747-L783","documentation":"Error \"Method not implemented\" thrown in microsoft/playwright.","triggerScenarios":"Thrown at packages/playwright-core/src/server/webkit/webview/wvPage.ts:765 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"}