python怎么用selenium获取请求头?

python怎么用selenium获取请求头?

d = selenium.webdriver.common.desired_capabilities.DesiredCapabilities.CHROME
d['loggingPrefs'] = {'performance': 'ALL'}
# --------------------分割线----------------------
browser.get_log('performance')

这个方法已经试过了,不好使,会出现异常:

selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: log type 'performance' not found

说是新版本不支持,请问该怎么解决?

新版selenium,log type ‘performance‘ not found解决办法:http://t.csdn.cn/HJ84W