chore: allow taking pixel screenshots in snapshot mode (#44)
Ref: https://github.com/microsoft/playwright-mcp/issues/39
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user