Today I Learned

A Hashrocket project

Mute audio on Chrome driven test suite

I have a beep in my test suite.

It drives me crazy.

Add this option to your webdriver config.

options = Selenium::WebDriver::Chrome::Options.new
options.add_argument("--mute-audio")

Obviously this is specific to my configuration. The takeaway here is the --mute-audio flag. You’ll be able to use that in whatever Chrome driven scenario you’re in.