lib/wmap/utils/url_magic.rb in wmap-2.5.5 vs lib/wmap/utils/url_magic.rb in wmap-2.5.6

- old
+ new

@@ -376,10 +376,10 @@ if doc.text.include?("Please enable JavaScript to view the page content") puts "Invoke headless chrome through webdriver ..." if @verbose #Selenium::WebDriver::Chrome.path = "/usr/local/bin/chromedriver" #driver = Selenium::WebDriver.for :chrome # http://watir.com/guides/chrome/ - args = ['--ignore-certificate-errors', '--disable-popup-blocking', '--disable-translate'] + args = ['--ignore-certificate-errors', '--disable-popup-blocking', '--disable-translate', '--disk-cache-size 8192'] browser = Watir::Browser.new :chrome, headless: true, options: {args: args} browser.goto(url) sleep(2) # wait for the loading doc = Nokogiri::HTML(browser.html) browser.close