Switching between online/offline

90 zobrazení
Přeskočit na první nepřečtenou zprávu

Mark Charsley

nepřečteno,
27. 10. 2016 0:05:4827.10.16
komu: Selenium Developers
Hi. I'm on a team that's working on a Progressive Web App, and want to have some automated tests for its offline support.

As far as I can tell, while Chrome's Dev Tools API allows one to tell Chrome "pretend you're offline", there's no way to access this via selenium.

Before I start sharpening my Yak Razor, were I to develop a Webdriver Capability/Extension that exposed this functionality (and a chromedriver implementation thereof) as a completely unofficial 20% project, would there be interest in accepting the patch into selenium?

thanks

Mark

Luke Inman-Semerau

nepřečteno,
27. 10. 2016 12:03:2127.10.16
komu: selenium-...@googlegroups.com
There is a NetworkConnection[1] API that was created for Mobile support and was implemented in Appium and Selendroid (maybe others?). It's been detailed in the Mobile Spec[2]. Sounds like chrome / chromedriver could implement those API calls for enabling / disabling network. If you're not aware, the chromedriver source code is here[3].


--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developers+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/c322d7ee-ce56-4fe1-872c-b8982db54d25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Charsley

nepřečteno,
28. 10. 2016 10:13:1228.10.16
komu: Selenium Developers
Ah perfect. That'll save me a lot of work. Please ignore my email about silence: I sent that before I say your reply

Mark

Mark Charsley

nepřečteno,
28. 10. 2016 10:13:1328.10.16
komu: Selenium Developers
Should I view the lack of replies as "no-one has any objections" or "no-one wants this"? :-)

Mark

Andreas Tolfsen

nepřečteno,
28. 10. 2016 11:13:2328.10.16
komu: selenium-...@googlegroups.com
"'Mark Charsley' via Selenium Developers"
<selenium-...@googlegroups.com> writes:

> Should I view the lack of replies as "no-one has any objections" or
> "no-one wants this"? :-)

This is probably something we would consider for the ‘level 2’ of the
W3C WebDriver specification.

Odpovědět všem
Odpověď autorovi
Přeposlat
0 nových zpráv