This commit is contained in:
Chris Tate
2026-01-10 12:17:39 -06:00
parent 6dc408e02f
commit 10466d7c4c
2 changed files with 8 additions and 3 deletions
+5
View File
@@ -435,6 +435,10 @@ export class BrowserManager {
const context = await this.browser.newContext({
viewport: options.viewport ?? { width: 1280, height: 720 },
});
// Set default timeout to 10 seconds (Playwright default is 30s)
context.setDefaultTimeout(10000);
this.contexts.push(context);
// Create initial page
@@ -470,6 +474,7 @@ export class BrowserManager {
const context = await this.browser.newContext({
viewport: viewport ?? { width: 1280, height: 720 },
});
context.setDefaultTimeout(10000);
this.contexts.push(context);
const page = await context.newPage();