chore: allow taking pixel screenshots in snapshot mode (#44)

Ref: https://github.com/microsoft/playwright-mcp/issues/39
This commit is contained in:
Pavel Feldman
2025-03-27 07:27:34 -07:00
committed by GitHub
parent 702fa0bdf3
commit d4bc2c78d2
8 changed files with 37 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ export class Context {
this._console.length = 0;
}
async existingPage(): Promise<playwright.Page> {
existingPage(): playwright.Page {
if (!this._page)
throw new Error('Navigate to a location to create a page');
return this._page;