{"id":54807,"library":"htmlunit","title":"HtmlUnit","description":"A headless browser intended for use in testing web-based applications, simulating browser behavior without a GUI.","status":"active","version":"2.70.0","language":"java","source_language":null,"source_url":"https://github.com/HtmlUnit/htmlunit","tags":["headless","browser","testing","web","automation"],"install":[{"cmd":"<dependency>\n  <groupId>net.sourceforge.htmlunit</groupId>\n  <artifactId>htmlunit</artifactId>\n  <version>2.70.0</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'net.sourceforge.htmlunit:htmlunit:2.70.0'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"WebClient","correct":"com.gargoylesoftware.htmlunit.WebClient"}],"quickstart":{"code":"import com.gargoylesoftware.htmlunit.WebClient;\nimport com.gargoylesoftware.htmlunit.html.HtmlPage;\n\npublic class Quickstart {\n    public static void main(String[] args) throws Exception {\n        try (WebClient webClient = new WebClient()) {\n            webClient.getOptions().setJavaScriptEnabled(false);\n            HtmlPage page = webClient.getPage(\"http://example.com\");\n            System.out.println(page.getTitleText());\n        }\n    }\n}","lang":"java","description":"Fetches a web page and prints its title using HtmlUnit's headless browser."},"warnings":[{"fix":"Ensure your project uses Java 11+.","message":"HtmlUnit 2.70.0 requires Java 11 or later.","severity":"breaking","affected_versions":">=2.70.0"}],"env_vars":null,"search_vec":"'applic':13 'autom':24 'base':12 'behavior':16 'browser':4,15,21 'gui':19 'headless':3,20 'htmlunit':1 'intend':5 'simul':14 'test':9,22 'use':7 'web':11,23 'web-bas':10 'without':17","created_at":"2026-06-15T09:24:03.860237+00:00","updated_at":"2026-06-15T09:24:03.860237+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://htmlunit.sourceforge.net","github":"https://github.com/HtmlUnit/htmlunit","docs":"https://appdoc.app/artifact/net.sourceforge.htmlunit/htmlunit/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}