// 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");
More than 5 years have passed since last update.
SeleniumでChromeDriverを使用するときに、画像表示を無効にする方法
Last updated at Posted at 2018-01-07
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme