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
Currently when page issues requests, we can use the pageerror event on the page to capture the unhandled exceptions that happen on that given page. But if the page opens a new popup or window, we would have to manually listen to these pageerror on those next set of pages to be able to capture these exceptions.
In an ideal scenario, It would be better to expose this information via the BrowserContext which would hold all the Unhandled exceptions that happen on the pages that are created within this context.
It also sync with other API's like the context.on("error", (error) => {}) where we can log all the error's that happen on all the pages created by this context.
The text was updated successfully, but these errors were encountered:
+ fix#24466
+ Adds support for exposing the `pageerror` events via `browserContext`
API.
+ Helps with capturing the overall exceptions that are thrown outside of
the the current page and also captures the exceptions happens on other
windows/popups.
+ Keeps the API in sync with `context.on('request)',
context.on('console'), etc..`
+ fixmicrosoft#24466
+ Adds support for exposing the `pageerror` events via `browserContext`
API.
+ Helps with capturing the overall exceptions that are thrown outside of
the the current page and also captures the exceptions happens on other
windows/popups.
+ Keeps the API in sync with `context.on('request)',
context.on('console'), etc..`
Currently when page issues requests, we can use the
pageerror
event on the page to capture the unhandled exceptions that happen on that given page. But if the page opens a new popup or window, we would have to manually listen to thesepageerror
on those next set of pages to be able to capture these exceptions.In an ideal scenario, It would be better to expose this information via the BrowserContext which would hold all the Unhandled exceptions that happen on the pages that are created within this context.
It also sync with other API's like the
context.on("error", (error) => {})
where we can log all the error's that happen on all the pages created by this context.The text was updated successfully, but these errors were encountered: