【问题标题】:How to start chrome without images in Selenium WebDriver for .NET?如何在 Selenium WebDriver for .NET 中启动没有图像的 chrome?
【发布时间】:2011-10-17 18:17:26
【问题描述】:

我正在尝试以下代码,但浏览器一直显示图像。

DesiredCapabilities capabilities = DesiredCapabilities.Chrome();
capabilities.SetCapability("chrome.switches", new string[1] {"disable-images"}); 
driver = new ChromeDriver(capabilities);

用于 .NET 的 Selenium WebDriver。

【问题讨论】:

    标签: .net google-chrome selenium


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-04-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-17
      • 1970-01-01
      • 2023-03-20
      • 1970-01-01
      相关资源
      最近更新 更多