logs = selenium.driver.get_log('client')
selenium.common.exceptions.WebDriverException: Message: unknown error: log type 'client' not found
(Session info: headless chrome=87.0.4280.88)
(Driver info: chromedriver=2.38.552518 (183d19265345f54ce39cbb94cf81ba5f15905011),platform=Mac OS X 10.13.6 x86_64)
我已经设置了所需的功能:
dc = DesiredCapabilities.CHROME
dc['goog:loggingPrefs'] = {'browser': 'ALL',
'driver': 'ALL',
'client': 'ALL',
'server': 'ALL',
'performance': 'ALL'}
请注意logs = selenium.driver.get_log('browser')
工作正常