Sha256: d3b61bc5f6498546f0d2a37c68f7f6f6fd97e3f15bfa179238a8871f4d8bebde
Contents?: true
Size: 1.04 KB
Versions: 11
Compression:
Stored size: 1.04 KB
Contents
require "pathname" require "java" dependency_directory = $:.detect { |path| Dir[File.join(path, 'htmlunit/htmlunit-*.jar')].any? } raise "Could not find htmlunit/htmlunit-VERSION.jar in load path:\n [ #{$:.join(",\n ")}\n ]" unless dependency_directory Dir[File.join(dependency_directory, "htmlunit/*.jar")].each do |jar| require jar end java.lang.System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog") java.lang.System.setProperty("org.apache.commons.logging.simplelog.defaultlog", "fatal") java.lang.System.setProperty("org.apache.commons.logging.simplelog.showdatetime", "true") java_import "com.gargoylesoftware.htmlunit.WebClient" java_import "com.gargoylesoftware.htmlunit.util.WebConnectionWrapper" java_import 'com.gargoylesoftware.htmlunit.HttpMethod' # Disable history tracking com.gargoylesoftware.htmlunit.History.field_reader :ignoreNewPages_ # Run in Firefox compatibility mode com.gargoylesoftware.htmlunit.BrowserVersion.setDefault( com.gargoylesoftware.htmlunit.BrowserVersion::FIREFOX_3 )
Version data entries
11 entries across 11 versions & 1 rubygems