Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/playwright-core/src/server/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,12 @@ export class Page extends SdkObject {
}

private async _performWaitForNavigationCheck(progress: Progress) {
// Allow skipping navigation checks for applications that manage navigation non-standardly.
// Some downstream users rely on this for scenarios like Electron apps with custom request
// interception and multi-window navigation handling.
if (process.env.PLAYWRIGHT_SKIP_NAVIGATION_CHECK)
return;

const mainFrame = this.frameManager.mainFrame();
if (!mainFrame || !mainFrame.pendingDocument())
return;
Expand Down