title: Capture logs from Chrome during test is running. Python
body: <p>I'm trying to capture logs from chrome, during automated test is running. Code is below:</p>
  
  <pre><code> binary_path = 'Chromium'
  chromedriver_path = 'chromedriver'
  
  opts = Options()
  opts.binary_location = binary_path
  d = DesiredCapabilities.CHROME
  d['goog:loggingPrefs'] = { 'browser':'ALL',
                             'driver': 'ALL'}
  
  driver = webdriver.Chrome(chromedriver_path, desired_capabilities=d, options=opts)
  
  #EXAMPLE TO GET LOGS
  driver.get('https://www.google.com/')
  driver.find_element_by_name('q').send_keys('abc')
  
  print('browser = ', driver.get_log('browser'))
  print('driver = ', driver.get_log('driver'))
  for entry in driver.get_log('browser'):
      print('entry = ', entry)
  
  driver.quit()
  </code></pre>
  
  <p>output from print:</p>
  
  <pre><code>browser =  []
  driver =  []
  </code></pre>
  
  <p>My question is, why entry isn't printing and why there is no output from chrome logs</p>