GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Project Page
  • Releases
  • Project Page
  • Download
  • Getting Started
  • WebClient - The Browser
  • Content Extraction
  • Form Inputs
  • Tables
  • File Download
  • File Upload
  • Keyboard Simulation
  • Windows & Frames
  • JavaScript Support

This view

  • Original page
  • New address

GeezerVison is showing www.htmlunit.org — Migration Guide – HtmlUnit

  • Migrating from HtmlUnit 2.x.x to HtmlUnit 3.x.x
    • 1. Adjust Maven group ID to org.htmlunit
    • 2. Adjust package names in your source code
    • 3. Update input control value access

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).

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.