Migrating from HtmlUnit 2.x.x to HtmlUnit 3.x.x
HtmlUnit 3 represents the transition to the new htmlunit.org domain.
For this purpose, the Maven group IDs for HtmlUnit and its subprojects
(core-js, neko, cssparser, and xpath) were updated.
Additionally, all package names have been unified under org.htmlunit.
1. Adjust Maven group ID to org.htmlunit
<dependency>
<groupId>org.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
<version>3.11.0</version>
</dependency>
2. Adjust package names in your source code
Replace all usages of com.gargoylesoftware.htmlunit with org.htmlunit.
Replace all usages of net.sourceforge.htmlunit with org.htmlunit.
import org.htmlunit.BrowserVersion;
import org.htmlunit.WebClient;
import org.htmlunit.html.HtmlInput;
import org.htmlunit.html.HtmlPage;
3. Update input control value access
Replace all usages of org.htmlunit.html.HtmlInput.getValueAttribute() with
org.htmlunit.html.HtmlInput.getValue().
Replace all usages of org.htmlunit.html.HtmlInput.setValueAttribute(String) with
org.htmlunit.html.HtmlInput.setValue(String).

