d = DesiredCapabilities.CHROME
d['loggingPrefs'] = {'browser': 'ALL'}
driver = webdriver.Chrome(desired_capabilities=d)
driver.get('http://foo.com')
for entry in driver.get_log('browser'):
    pass
Getting console.log output from Chrome with Selenium Python API bindings