Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

Revert "chore: remove PLAYWRIGHT_SKIP_NAVIGATION_CHECK (#36283)" (#38262)

Dmitry Gozmanf98bcc5f9758
diff --git a/packages/playwright-core/src/server/page.ts b/packages/playwright-core/src/server/page.ts
index d966151141..7ee90d3569 100644
--- a/packages/playwright-core/src/server/page.ts
+++ b/packages/playwright-core/src/server/page.ts
@@ -485,6 +485,8 @@ export class Page extends SdkObject {
}
private async _performWaitForNavigationCheck(progress: Progress) {
+ if (process.env.PLAYWRIGHT_SKIP_NAVIGATION_CHECK)
+ return;
const mainFrame = this.frameManager.mainFrame();
if (!mainFrame || !mainFrame.pendingDocument())
return;