geckodriver icon indicating copy to clipboard operation
geckodriver copied to clipboard

Feature: Add set_network_conditions to geckodriver

Open Avnsx opened this issue 4 years ago • 1 comments

Didn't find anything similar to it in geckodriver, would be kinda nice to see; to be able to throttle network just as in chromedriver.

DOCUMENTATION
Sets Chrome network emulation settings.

Args
 - network_conditions: A dict with conditions specification.

Usage
    driver.set_network_conditions(
        offline=False,
        latency=5,  # additional latency (ms)
        download_throughput=500 * 1024,  # maximal throughput
        upload_throughput=500 * 1024)  # maximal throughput

    Note: 'throughput' can be used to set both (for download and upload).

Avnsx avatar Jan 23 '21 19:01 Avnsx

I think it's related to https://bugzilla.mozilla.org/show_bug.cgi?id=1571358

JaPyR avatar Apr 14 '21 14:04 JaPyR

This is non WebDriver classic standard and as such we are not going to implement it for this particular protocol. But with WebDriver BiDi we will eventually get to emulating network conditions. Whereby it might still take a little bit. Feel free to observe the status and roadmap via https://w3c.github.io/webdriver-bidi/.

whimboo avatar May 02 '23 06:05 whimboo