Disable images in Selenium Google ChromeDriver

后端 未结 7 1343
悲哀的现实
悲哀的现实 2020-12-16 13:58

How does one disable images in Google chrome when using it through Selenium and c#?

I\'ve attempted 6 ways and none worked. I\'ve even tried the answer on this Stack

7条回答
  •  时光说笑
    2020-12-16 14:18

    An easier approach would be solely:

    ChromeOptions options = new ChromeOptions();
    options.addArguments("headless","--blink-settings=imagesEnabled=false");
    

提交回复
热议问题