Add an API to get/set network conditions
Categories
(Remote Protocol :: Marionette, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: tarek, Unassigned)
Details
Selenium can leverage Chrome's network emulation feature on the fly via the setNetworkConditions and getNetworkConditions ChromeDriver APIs
In Gecko, we have a similar feature in our devtools, see:
https://searchfox.org/mozilla-central/source/devtools/client/shared/components/throttling -- that is based on netwerk's ThrottleQueue class.
So we could add a similar option in our tools to set gecko network conditions the same way.
| Reporter | ||
Comment 1•6 years ago
|
||
related: bug 1548572
Comment 2•6 years ago
|
||
This implementation is not relying on the WebDriver standard, and might even use CDP to communicate that. It's very unlikely that we will have this with geckodriver. Maybe with the Remote Agent it would be doable.
If this setting is controlled via preferences (maybe network.http.throttle.*), why can't you just set those?
Comment 3•6 years ago
|
||
(In reply to Henrik Skupin (:whimboo) [⌚️UTC+2] from comment #2)
This implementation is not relying on the WebDriver standard, and might even use CDP to communicate that. It's very unlikely that we will have this with geckodriver. Maybe with the Remote Agent it would be doable.
This will, like Chrome's implementation, live in a browser specific namespace for webdriver. We can also add it to remote agent as well. This is to solve a specific problem that Tarek has.
| Reporter | ||
Updated•6 years ago
|
Updated•3 years ago
|
Updated•2 years ago
|
Comment 4•2 years ago
|
||
We will get to this eventually via the WebDriver BiDi implementation, but it won't happen for Marionette.
Description
•