LoginSignup
3
2

More than 5 years have passed since last update.

SeleniumでChromeDriverを使用するときに、画像表示を無効にする方法

Last updated at Posted at 2018-01-07
// Chrome起動時の引数
String disableImageArgument = "blink-settings=imagesEnabled=false";

// ChromeOptionに引数を設定
ChromeOptions options = new ChromeOptions().addArguments(disableImageArgument);

// ChromeOptionを適用してDriverを作成
ChromeDriver driver = new ChromeDriver(options);

// リクエスト送信
driver.get("http://example.com");
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2