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
This allows to simulate specific failures, such as having no internet connection for a specific request (via the 'internetdisconnected' code) without having to to emulate offline mode for the whole context/browser.
The text was updated successfully, but these errors were encountered:
Puppeteer and Playwright both expose an "errorCode" parameter when aborting a request (https://pptr.dev/api/puppeteer.httprequest.abort, https://playwright.dev/docs/api/class-route#route-abort).
This allows to simulate specific failures, such as having no internet connection for a specific request (via the 'internetdisconnected' code) without having to to emulate offline mode for the whole context/browser.
The text was updated successfully, but these errors were encountered: