DevTools listening on ws://127.0.0.1のキャンセルについて...ヒントの方法

1263 ワード

原文リンク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)