diff --git a/src/core/browser.ts b/src/core/browser.ts index 40ea9c99a..fea691cdd 100644 --- a/src/core/browser.ts +++ b/src/core/browser.ts @@ -58,7 +58,7 @@ export async function createPage(path?: string, options?: BrowserContextOptions) } if (path) { - await page.goto(url(path), { waitUntil: 'hydration' }) + await page.goto(url(path), options?.javaScriptEnabled === false ? {} : { waitUntil: 'hydration' }) } return page