Read more

Selenium: Network throttling via Chromedriver

Emanuel
July 19, 2021Software engineer at makandra GmbH

You can throttle the network in your headless chrome via Selenium. This might be useful for debugging issues with flaky integration tests or slow page simulations.

page.driver.browser.network_conditions = {offline: false, latency: 5, download_throughput: 2 * 1024, upload_throughput: 2 * 1024}

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

The settings will match to the following UI component in Chrome:

Image

Were the values for the default profiles might match the values from this post Show archive.org snapshot :

Slow 3G Custom:

  • download_throughput: 376 * 1024
  • latency: 2000

Fast 3G Custom:

  • download_throughput: 1500 * 1024
  • latency: 550
Posted by Emanuel to makandra dev (2021-07-19 13:56)