Read more

Capybara: Disable sound during Selenium tests

Henning Koch
February 07, 2017Software engineer at makandra GmbH

If the application under test makes sound, you probably want to disable this during integration testing.

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

You can use the args option to pass parameters to the browser. For Chrome:

Capybara.register_driver :selenium do |app|
  Capybara::Selenium::Driver.new(app, browser: :chrome, args: ["--mute-audio"])
end

I haven't found a corresponding command line option for Firefox Show archive.org snapshot .

Hat tip to kratob Show archive.org snapshot .

Posted by Henning Koch to makandra dev (2017-02-07 16:03)