Entries from 2015-11-18 to 1 day
http://stackoverflow.com/questions/15371495/phantomjs-1-8-with-selenium-on-python-how-to-block-imageswebdriver.PhantomJS(service_args=['--load-images=no'])試していません
prefs = { 'profile' => { #'default_content_settings' => {'images' => 2}, 'managed_default_content_settings' => {'images' => 2}, } }ch = Selenium::WebDriver.for(:chrome, :prefs => prefs)但しchromedriverのバージョンは selenium-webdriver 2.37…
download chromedriverhttps://github.com/SeleniumHQ/selenium/wiki/ChromeDriver https://sites.google.com/a/chromium.org/chromedriver/downloads unzip it to /usr/bin/chromedriverthen require 'selenium-webdriver'#Selenium初期化 ff = Selenium::W…