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

How to go offline? #189

Closed
aliciapaz opened this issue Mar 17, 2022 · 2 comments
Closed

How to go offline? #189

aliciapaz opened this issue Mar 17, 2022 · 2 comments

Comments

@aliciapaz
Copy link

I've been trying to find a way to test a PWA end-to-end using Cuprite as my driver, but I haven't find any way of either temporarily disabling the app server or switching the headless browser into offline mode.

I've seen some resources regarding this issue (stackoverflow, blog posts, etc.) but they all refer to Capybara + Selenium.

I'd appreciate your help on this!

@route
Copy link
Member

route commented Apr 18, 2022

There's no such ability now, but it can be easy to implement judging by this.

https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-emulateNetworkConditions
gr2m/headless-chrome-test#1 (comment)

I'll try to take a stab soon

@route
Copy link
Member

route commented May 17, 2022

Was implemented in Ferrum and will land on Cuprite in the new release.

@route route closed this as completed May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants