Reputation: 1374
My question is in relation to how to disable chrome extension in selenium. What would be the C# equivalent of this? The following is what I've tried so far.
ChromeOptions options = new ChromeOptions();
options.AddAdditionalCapability("chrome.switches", Arrays.asList("--disable-extensions"));
var driver = new ChromeDriver();
Upvotes: 1
Views: 2812
Reputation: 25076
ChromeOptions options = new ChromeOptions();
options.AddArgument("--disable-extensions");
var driver = new ChromeDriver(options);
Works perfectly for me.
Upvotes: 4