Python selenium: 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="<path-to-chrome>", options=options)

As per the solution from this chromium issue.

Leave a Comment