Opt out of selenium manager's telemetry

If you use the selenium-webdriver gem, it will sneakily phone home once every hour whenever you run a browser based feature spec.

Check if you're affected

Check if ~/.cache/selenium/se-metadata.json exists. (It contains a "ttl" timestamp of its last/next anaytics call. You can parse it with Ruby's Time.at.)

Opt out

You can opt out Show archive.org snapshot either globally:

# .bashrc
export SE_AVOID_STATS=true

or project based

# spec_helper.rb
ENV['SE_AVOID_STATS'] = 'true'

To test if it works

  • Go offline
  • Remove ~/.cache/selenium/se-metadata.json
  • Run a JS feature spec
  • You should no longer see WARN Selenium [:selenium_manager] Error sending stats to Plausible: error sending request for url (https://plausible.io/api/event)

See also

Michael Leimstädtner