Skip to content

Control network speed programmatically #2874

Closed

Description

@vsantosu

Is there a way to control the network speed in the DevTools emulation programmatically? I know that I can access and set the device emulation through webContents.enableDeviceEmulation, but I can't find anything to set the bandwidth throttling to 3G, 4G or other speeds... I'm trying to automatically test an app in headless servers and it will be great if I can simulate several networks speeds among the clients.

-Thanks

Activity

  1. zcbenz commented on Sep 23, 2015

    @zcbenz
    Contributor

    There is no such API for now, but it looks good to me to add one.

  2. deepak1556 commented on Sep 23, 2015

    @deepak1556
    Member

    Currently our devtools doesnt throttle network in emulation mode, we need to implement it before exposing an api.

  3. vsantosu commented on Sep 23, 2015

    @vsantosu
    Author

    Thanks so much for the quick response. In an era of real time applications, this will be a killer feature to have 👍 looking forward to the next releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions