The Selenium documentation mentions that the Chrome webdriver can take an instance of ChromeOptions
, but I can't figure out how to create ChromeOptions
.
I'm hoping to pass the --disable-extensions
flag to Chrome.
The Selenium documentation mentions that the Chrome webdriver can take an instance of ChromeOptions
, but I can't figure out how to create ChromeOptions
.
I'm hoping to pass the --disable-extensions
flag to Chrome.
This is how I did it.
Found the chrome Options class in the Selenium source code.
Usage to create a Chrome driver instance:
Code which disable chrome extensions for ones, who uses DesiredCapabilities to set browser flags :