Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support specific errors / error codes in network.failRequest #848

Open
juliandescottes opened this issue Jan 9, 2025 · 0 comments
Open
Labels
module-network Network module needs-discussion Issues to be discussed by the working group

Comments

@juliandescottes
Copy link
Contributor

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.

@juliandescottes juliandescottes added needs-discussion Issues to be discussed by the working group module-network Network module labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module-network Network module needs-discussion Issues to be discussed by the working group
Projects
None yet
Development

No branches or pull requests

1 participant