Hi,
When opening developer console in chrome, I can block certain domains in order to simulate that the website cannot reach the backend.
Can do something like that with playwright and Browser?
Regards,
Markus
Hi,
When opening developer console in chrome, I can block certain domains in order to simulate that the website cannot reach the backend.
Can do something like that with playwright and Browser?
Regards,
Markus
I would assume that browserContext would allow to simulate network errors – i have not tried and not sure if browserlib supports this but with page.route at least you can simulate any http error you want..
I’m using that to block certain services with page.route. On Route | Playwright, check abort().. Maybe issuing route.abort() with appropriate errorcode is also possible.
Added a support to call route.abort() to simulate what ever error conditions here Added new keyword to block urls. by rasjani · Pull Request #25 · MarketSquare/robotframework-browser-extensions · GitHub