关于取消DevTools listening on ws://127.0.0.1...提示的方法

原文链接
DevTools listening on ws://127.0.0.1
不停的提示,虽然不影响程序的运行.可总是看些烦心. 搜了许久,找到这个方法.记录在这里,以备忘了来查.

I had the same issue, did a bit of digging and finally found a working solution. This should remove the DevTools message popping up:

options = webdriver.ChromeOptions()
options.add_experimental_option('excludeSwitches', ['enable-logging'])
driver = webdriver.Chrome(executable_path='', options=options)

你可能感兴趣的:(python)