This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25179 - [WebDriver Spec]: Need a way to enable / disable networking from webdriver
Summary: [WebDriver Spec]: Need a way to enable / disable networking from webdriver
Status: NEW
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 24121
  Show dependency treegraph
 
Reported: 2014-03-27 16:03 UTC by James Graham
Modified: 2014-07-07 15:59 UTC (History)
3 users (show)

See Also:


Attachments

Description James Graham 2014-03-27 16:03:01 UTC
The new generation of web apps are expected to continue to function when networking is not available for whatever reason. Obviously this is particularly important on mobile devices to close the gap between native apps and web apps.

At present it isn't possible to test the behaviour of an app when it is offline, or the transition between online and offline or vice-versa. This substantially decreases the utility of WebDriver for testing contemporary web applications. Neither is it possible to write testsuites for the features underlying offline support (AppCache, Service Worker), substantially increasing the chance of buggy or non-interoperable implementations. 

The most obvious way to provide this would be to expose an API to webdriver that would allow disabling "content" networking i.e. from the point of view of the webpage it would look like the browser was offline, but privileged code (in particular webdriver itself) would still be able to perform network operations.
Comment 1 Marc Fisher 2014-03-27 16:57:11 UTC
While I think this is an important and useful feature, I believe that it more appropriately belongs in Level 2 than Level 1.
Comment 2 Luke Inman-Semerau 2014-07-07 15:59:30 UTC
related mobile spec:

https://code.google.com/p/selenium/source/browse/spec-draft.md?repo=mobile#120