Posted almost 5 years ago. Visible to the public.
Capybara: Disable sound during Selenium tests
If the application under test makes sound, you probably want to disable this during integration testing.
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.
Hat tip to.