擅长:python、mysql、java
<p>对于那些正在寻找firefox解决方案的人来说,这对我很有用。我希望它能帮助别人。</p>
<pre><code>from selenium import webdriver
profile = webdriver.FirefoxProfile()
profile.set_preference("media.volume_scale", "0.0")
driver = webdriver.Firefox(firefox_profile=profile)
</code></pre>