{"id":25776671,"url":"https://github.com/SeleniumHQ/htmlunit-driver","last_synced_at":"2025-02-27T06:06:49.417Z","repository":{"id":37900406,"uuid":"51905729","full_name":"SeleniumHQ/htmlunit-driver","owner":"SeleniumHQ","description":"WebDriver compatible driver for HtmlUnit headless browser.","archived":false,"fork":false,"pushed_at":"2025-01-23T17:55:42.000Z","size":6725,"stargazers_count":258,"open_issues_count":16,"forks_count":86,"subscribers_count":45,"default_branch":"master","last_synced_at":"2025-02-20T17:06:10.509Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SeleniumHQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"selenium"}},"created_at":"2016-02-17T08:07:17.000Z","updated_at":"2025-02-18T14:45:13.000Z","dependencies_parsed_at":"2023-01-29T17:15:33.460Z","dependency_job_id":"87de0ccf-74b9-435a-9c84-67e42cfa2a98","html_url":"https://github.com/SeleniumHQ/htmlunit-driver","commit_stats":{"total_commits":736,"total_committers":16,"mean_commits":46.0,"dds":0.4741847826086957,"last_synced_commit":"a8cf411b6de0c42a6126679d6f23b3f8752afac7"},"previous_names":[],"tags_count":117,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeleniumHQ%2Fhtmlunit-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeleniumHQ%2Fhtmlunit-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeleniumHQ%2Fhtmlunit-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeleniumHQ%2Fhtmlunit-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SeleniumHQ","download_url":"https://codeload.github.com/SeleniumHQ/htmlunit-driver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240898273,"owners_count":19875151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-27T06:01:28.708Z","updated_at":"2025-02-27T06:06:49.411Z","avatar_url":"https://github.com/SeleniumHQ.png","language":"Java","funding_links":["https://opencollective.com/selenium"],"categories":["测试"],"sub_categories":[],"readme":"# ![HtmlUnitDriver Logo](https://github.com/SeleniumHQ/htmlunit-driver/blob/master/htmlunit_webdriver.png)\n\n**HtmlUnitDriver** is a WebDriver compatible driver for the [HtmlUnit](https://www.htmlunit.org) headless browser.\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.seleniumhq.selenium/htmlunit3-driver/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.seleniumhq.selenium/htmlunit3-driver)\n\n## News\n\n**[Developer Blog](https://htmlunit.github.io/htmlunit-blog/)**\n\n[HtmlUnit@mastodon](https://fosstodon.org/@HtmlUnit) | [HtmlUnit@bsky](https://bsky.app/profile/htmlunit.bsky.social) | [HtmlUnit@Twitter](https://twitter.com/HtmlUnit)\n\n\n[![Build Status](https://jenkins.wetator.org/buildStatus/icon?job=HtmlUnitDriver+-+Selenium+4)](https://jenkins.wetator.org/view/HtmlUnit%20Driver/job/HtmlUnitDriver%20-%20Selenium%204/)\n\n## HtmlUnit Remote - Selenium 4 Grid support\n\nPlease have a look at the **[HtmlUnit Remote](https://github.com/sbabcoc/htmlunit-remote)** project if you like to use\nthis driver from [Selenium 4 Grid](https://www.selenium.dev/documentation/grid).\n\n\n## Get it!\n\nAn overview of the different versions, the HtmlUnit version used in each case and the compatibility \ncan be found in these [tables](docs/compatibility.md).\n\n### Maven\n\nSimply add a dependency on the latest `htmlunit3-driver` version available in the\n[Maven Central](https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/htmlunit3-driver/) repository.\n\nAdd to your `pom.xml`:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.seleniumhq.selenium\u003c/groupId\u003e\n    \u003cartifactId\u003ehtmlunit3-driver\u003c/artifactId\u003e\n    \u003cversion\u003e4.29.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle\n\nAdd to your `build.gradle`:\n\n```groovy\nimplementation group: 'org.seleniumhq.selenium', name: 'htmlunit3-driver', version: '4.29.0'\n```\n\n\n## Usage\n\n### Simple\n\nYou can simply use one of the constructors from the **HtmlUnit** driver class\n\n```java\n// simple case - no javascript support\nWebDriver webDriver = new HtmlUnitDriver();\n```\n\n```java\n// specify the browser - no javascript support\nWebDriver webDriver = new HtmlUnitDriver(BrowserVersion.FIREFOX);\n```\n\n```java\n// simple case - javascript support enabled\nWebDriver webDriver = new HtmlUnitDriver(true);\n```\n\n```java\n// specify the browser - javascript support enabled\nWebDriver webDriver = new HtmlUnitDriver(BrowserVersion.FIREFOX, true);\n```\n\n\n### Customization\n\n**HtmlUnit** offers many customization options. Similar to the other WebDriver implementations, the **HtmlUnitDriverOptions**\nclass can be used to customize your **HtmlUnit** driver.\n\n```java\nfinal HtmlUnitDriverOptions driverOptions = new HtmlUnitDriverOptions(BrowserVersion.FIREFOX);\n\n// configure e.g.\ndriverOptions.setCapability(HtmlUnitOption.optThrowExceptionOnScriptError, false);\n\nHtmlUnitDriver webDriver = new HtmlUnitDriver(driverOptions);\n// use the driver\n```\n\n**NOTE**: Complete details for the **HtmlUnitDriverOptions** class can be found [here](docs/options.md).\n\n### Selenium compatibility\n\nAn overview of the different versions, the **HtmlUnit** version used in each case and the compatibility \ncan be found in these [tables](docs/compatibility.md).\n\n## License\n\n**HtmlUnitDriver** is distributed under Apache License 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSeleniumHQ%2Fhtmlunit-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSeleniumHQ%2Fhtmlunit-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSeleniumHQ%2Fhtmlunit-driver/lists"}