title: disable console messages on chrome webdriver python selenium
body: <p>I'm using chrome webdriver with selenium and python.</p>
  
  <p>I get this console messages on command terminal.</p>
  
  <p><a href="https://i.stack.imgur.com/qnrNk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qnrNk.png" alt="console"></a></p>
  
  <p>Also, the html file is located on my machine: <code>file:///D:/serp/5e577f17e0d7ae57db776c0b/dumps/1.html</code></p>
  
  <p>Here's the chrome options:</p>
  
  <pre><code>chrome_options = Options()
  chrome_options.add_argument("--headless")
  chrome_options.add_argument('--lang=en-GB')
  chrome_options.add_argument('--disable-web-security')
  chrome_options.add_argument('--disable-gpu')
  chrome_driver = os.getcwd() + "\\chromedriver.exe"
  driver = webdriver.Chrome(chrome_options=chrome_options, executable_path=chrome_driver)
  driver.get(url_string)
  </code></pre>
  
  <p>How do I disable those messages?</p>