Skip to content

Commit

Permalink
Do not send telemetry stats to Selenium (#1004)
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala authored Nov 4, 2024
1 parent 6c1f8e6 commit c4237e3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/support/capybara.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# frozen_string_literal: true

Capybara.register_driver :custom_chrome do |app|
# Opt-out for Selenium data collection.
#
# Note: This is the only available method to disable telemetry at this point.
# Configuring the driver here is too late as the manager is already set at
# the system level.
#
# To test that telemetry is not being send, use the command:
# `DEBUG=true SE_CLEAR_CACHE=true rspec`
#
# Ref: SeleniumHQ/selenium#13173
ENV['SE_AVOID_STATS'] = 'true'

opts = Selenium::WebDriver::Chrome::Options.new

# See https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md
Expand Down

0 comments on commit c4237e3

Please sign in to comment.