from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
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
Получение вывода console.log из Chrome с привязками Selenium Python API