我想知道是否有办法通过 selenium 中的配置文件设置禁用来自 Firefox 的声音?
最佳答案
您可以将 'media.volume_scale' firefox 属性设置为“0.0”FirefoxProfile firefoxProfile = new FirefoxProfile();
firefoxProfile.setPreference("media.volume_scale", "0.0");
关于selenium - 禁用 Firefox 的声音? ( Selenium 网络驱动程序编程),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12158366/