擅长:python、mysql、java
<p>我使用我在SO<a href="https://stackoverflow.com/questions/46744968/how-to-suppress-console-error-warning-info-messages-when-executing-selenium-pyth">here</a>上找到的下面的</p>
<pre><code> options = webdriver.ChromeOptions()
# disable some annoying debug output to console
options.add_argument(' log-level=3')
options.add_experimental_option('excludeSwitches', ['enable-logging'])
browser = webdriver.Chrome(
"C://Program Files (x86)//Google//Chrome//Application//chromedriver.exe", options=options)
</code></pre>