arsenik
arsenik

Reputation: 1017

How to start Chrome with webdriver and quic disabled?

I need to start chrome with webdriver with quic disabled as follow:

--flag-switches-begin --disable-quic --flag-switches-end

I am using python with selenium 2.47.3

from selenium import webdriver
from selenium.webdriver.chrome.options import Options as ChromeOptions

options = webdriver.ChromeOptions() 
options.add_argument("--disable-quic")
_browser = webdriver.Chrome(chrome_options=options)

Doing that does not put --disable-quic in between --flags-switches-begin and end.

Upvotes: 2

Views: 1231

Answers (1)

In case anyone is still looking for this, the correct way to do this is:

options = webdriver.ChromeOptions() 
options.add_argument("disable-quic")  # not "--disable-quic"
_browser = webdriver.Chrome(options=options)

Upvotes: 4

Related Questions