Apache Nutch is an extensible and scalable web crawler
Merge and resolve conflicts with Nutch-2252
Chris Mattmann7f211ecdc38b
diff --cc conf/nutch-default.xmlindex de0c2dc75,a9cce4396..641809fc9--- a/conf/nutch-default.xml+++ b/conf/nutch-default.xml@@@ -1915,51 -1919,6 +1915,51 @@@ visit https://wiki.apache.org/nutch/Sim</description></property>+<!-- lib-htmlunit plugin properties; applies to protocol-htmlunit -->++<property>+ <name>htmlunit.enable.javascript</name>+ <value>true</value>+ <description>+ A Boolean value representing if javascript should+ be enabled or disabled when using htmlunit. The default value is enabled.+ </description>+</property>++<property>+ <name>htmlunit.javascript.timeout</name>+ <value>3500</value>+ <description>+ The timeout in milliseconds when loading javascript with lib-htmlunit. This+ setting is used by protocol-htmlunit since they depending on+ lib-htmlunit for fetching.+ </description>+</property>++<property>+ <name>htmlunit.enable.css</name>+ <value>false</value>+ <description>+ A Boolean value representing if CSS should+ be enabled or disabled when using htmlunit. The default value is disabled.+ </description>+</property>++<!-- protocol-selenium plugin properties -->++<property>+ <name>selenium.driver</name>+ <value>firefox</value>+ <description>+ A String value representing the flavour of Selenium+ WebDriver() to use. Currently the following options- exist - 'firefox', 'chrome', 'safari', 'opera' and 'remote'.++ exist - 'firefox', 'chrome', 'safari', 'opera', 'phantomjs' and 'remote'.+ If 'remote' is used it is essential to also set correct properties for+ 'selenium.hub.port', 'selenium.hub.path', 'selenium.hub.host',+ 'selenium.hub.protocol', 'selenium.grid.driver' and 'selenium.grid.binary'.+ </description>+</property>+<property><name>selenium.hub.port</name><value>4444</value>diff --cc src/plugin/lib-selenium/src/java/org/apache/nutch/protocol/selenium/HttpWebClient.javaindex 3a20cfe39,8ec3fa91e..86692ae77--- a/src/plugin/lib-selenium/src/java/org/apache/nutch/protocol/selenium/HttpWebClient.java+++ b/src/plugin/lib-selenium/src/java/org/apache/nutch/protocol/selenium/HttpWebClient.java@@@ -173,9 -186,9 +186,9 @@@ public class HttpWebClient*/public static String getHtmlPage(String url, Configuration conf) {WebDriver driver = getDriverForPage(url, conf);-+try {- if (conf.getBoolean("selenium.take.screenshot", false)) {+ if (conf.getBoolean("take.screenshot", false)) {takeScreenshot(driver, conf);}