You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BrowserContext.pages() does not know if a page is opened by a source other than Playwright. If an app other than Playwright opens a page, it doesn't get added to context.pages(). This includes the recommended pattern from the docs:
If the action that triggers the new page is unknown, the following pattern can be used:
// Get all new pages (including popups) in the contextcontext.onPage(page -> {
page.waitForLoadState();
System.out.println(page.title());
});
The event is not emitted if a page is opened by an external source. It is emitted with context.newPage(), however