试图在 ChromeDriver 中禁用图像加载。我正在使用以下代码,但它仍在加载图像。有什么建议么?
DesiredCapabilities capabilities = DesiredCapabilities.Chrome();
capabilities.SetCapability("chrome.switches", new string[1] { "disable-images" });
IWebDriver driver = new ChromeDriver(@"C:\chromedriver\", capabilities);