{"id":17912486,"url":"https://github.com/bonigarcia/wdm-agent-example","last_synced_at":"2026-03-06T07:32:25.326Z","repository":{"id":38028198,"uuid":"263341184","full_name":"bonigarcia/wdm-agent-example","owner":"bonigarcia","description":"Example of maven project using Selenium WebDriver and WebDriverManager as Agent","archived":false,"fork":false,"pushed_at":"2026-02-23T06:07:42.000Z","size":265,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-23T14:23:00.705Z","etag":null,"topics":["chromedriver","geckodriver","java","java-agent","maven","selenium","selenium-webdriver","webdrivermanager"],"latest_commit_sha":null,"homepage":"https://bonigarcia.dev/webdrivermanager/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bonigarcia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":null,"patreon":null,"open_collective":"webdrivermanager","ko_fi":null,"tidelift":null,"community_bridge":null,"custom":null}},"created_at":"2020-05-12T13:14:39.000Z","updated_at":"2026-02-23T06:07:38.000Z","dependencies_parsed_at":"2023-11-06T07:46:17.854Z","dependency_job_id":"e153d812-88dc-47ff-a317-81a4f8f7ffe0","html_url":"https://github.com/bonigarcia/wdm-agent-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bonigarcia/wdm-agent-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonigarcia%2Fwdm-agent-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonigarcia%2Fwdm-agent-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonigarcia%2Fwdm-agent-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonigarcia%2Fwdm-agent-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bonigarcia","download_url":"https://codeload.github.com/bonigarcia/wdm-agent-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonigarcia%2Fwdm-agent-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30165627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:43:31.446Z","status":"ssl_error","status_checked_at":"2026-03-06T04:40:30.133Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["chromedriver","geckodriver","java","java-agent","maven","selenium","selenium-webdriver","webdrivermanager"],"created_at":"2024-10-28T19:45:30.050Z","updated_at":"2026-03-06T07:32:25.302Z","avatar_url":"https://github.com/bonigarcia.png","language":"Java","funding_links":["https://opencollective.com/webdrivermanager","https://opencollective.com/webdrivermanager/donate","https://opencollective.com/webdrivermanager/contribute/backer-8132/checkout","https://opencollective.com/webdrivermanager/contribute/sponsor-8133/checkout"],"categories":[],"sub_categories":[],"readme":"[![Maven Central](https://img.shields.io/maven-central/v/io.github.bonigarcia/webdrivermanager.svg)](https://search.maven.org/#search%7Cga%7C1%7Cg%3Aio.github.bonigarcia%20a%3Awebdrivermanager)\n[![Build Status](https://github.com/bonigarcia/wdm-agent-example/workflows/build/badge.svg)](https://github.com/bonigarcia/wdm-agent-example/actions)\n[![badge-jdk](https://img.shields.io/badge/jdk-8-green.svg)](https://www.oracle.com/technetwork/java/javase/downloads/index.html)\n[![License badge](https://img.shields.io/badge/license-Apache2-green.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![Backers on Open Collective](https://opencollective.com/webdrivermanager/backers/badge.svg)](#backers)\n[![Sponsors on Open Collective](https://opencollective.com/webdrivermanager/sponsors/badge.svg)](#sponsors)\n[![Support badge](https://img.shields.io/badge/stackoverflow-webdrivermanager_java-green.svg?logo=stackoverflow)](https://stackoverflow.com/questions/tagged/webdrivermanager-java)\n[![Twitter Follow](https://img.shields.io/twitter/follow/boni_gg.svg?style=social)](https://twitter.com/boni_gg)\n\n# WebDriverManager Agent Example [![][Logo]][GitHub Repository]\n\nThis repository contains a Maven repository with examples to automate the [Selenium WebDriver] binaries management using [WebDriverManager] as **Agent**. This repository is open source, released under the terms of [Apache 2.0 License].\n\n## Usage\n\nIn order to use WebDriverManager Agent from tests in a Maven project, this example first includes the WebDriverManager dependency in the `pom.xml` using the `test` scope:\n\n```xml\n    \u003cdependency\u003e\n        \u003cgroupId\u003eio.github.bonigarcia\u003c/groupId\u003e\n        \u003cartifactId\u003ewebdrivermanager\u003c/artifactId\u003e\n        \u003cversion\u003e${wdm.version}\u003c/version\u003e\n        \u003cscope\u003etest\u003c/scope\u003e\n    \u003c/dependency\u003e\n```\n\nThen, the Java agent (``-javaagent``) is configured using the two Maven plugins: ``maven-dependency-plugin`` (which allows to manipulate Maven dependencies) and ``maven-surefire-plugin`` (which executes the unit tests in the Maven lifecycle), as follows: \n\n```xml\n    \u003cbuild\u003e\n        \u003cplugins\u003e\n            \u003cplugin\u003e\n                \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n                \u003cartifactId\u003emaven-dependency-plugin\u003c/artifactId\u003e\n                \u003cversion\u003e${maven-dependency-plugin.version}\u003c/version\u003e\n                \u003cexecutions\u003e\n                    \u003cexecution\u003e\n                        \u003cgoals\u003e\n                            \u003cgoal\u003eproperties\u003c/goal\u003e\n                        \u003c/goals\u003e\n                    \u003c/execution\u003e\n                \u003c/executions\u003e\n            \u003c/plugin\u003e\n\n            \u003cplugin\u003e\n                \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n                \u003cartifactId\u003emaven-surefire-plugin\u003c/artifactId\u003e\n                \u003cversion\u003e${maven-surefire-plugin.version}\u003c/version\u003e\n                \u003cconfiguration\u003e\n                    \u003cargLine\u003e-javaagent:${io.github.bonigarcia:webdrivermanager:jar}\u003c/argLine\u003e\n                \u003c/configuration\u003e\n            \u003c/plugin\u003e\n        \u003c/plugins\u003e\n    \u003c/build\u003e\n```\n\nWhen the Maven tests are executed (``mvn test``), WebDriverManager Agent will check the objects being created in the JVM. Just before Selenium WebDriver objects are instantiated in the tests (``org.openqa.selenium.chrome.ChromeDriver``, ``org.openqa.selenium.firefox.FirefoxDriver``, ``org.openqa.selenium.opera.OperaDriver``, ``org.openqa.selenium.edge.EdgeDriver``, or ``org.openqa.selenium.ie.InternetExplorerDriver``), the proper WebDriverManager setup call is executed to manage the required driver (*chromedriver*, *geckodriver*, *msedgedriver*, etc).  \n\nThe tests contained in this project are the following (notice there is no setup for *chromedriver* nor *geckodriver*).\n\n```java\nclass ChromeTest {\n\n    WebDriver driver;\n\n    @BeforeEach\n    void setupTest() {\n        driver = new ChromeDriver();\n    }\n\n    @AfterEach\n    void teardown() {\n        driver.quit();\n    }\n\n    @Test\n    void test() {\n        // Your test code here\n    }\n\n}\n```\n\n```java\nclass FirefoxTest {\n\n    WebDriver driver;\n\n    @BeforeEach\n    void setupTest() {\n        driver = new FirefoxDriver();\n    }\n\n    @AfterEach\n    void teardown() {\n        driver.quit();\n    }\n\n    @Test\n    void test() {\n        // Your test code here\n    }\n\n}\n```\n\nWhen the test are executed through the ``maven-surefire-plugin`` (i.e. running ``mvn test``), the WebDriverManager Agent resolves the proper driver, and the tests are executed correctly:\n\n```\n$ mvn test\n...\n[INFO] -------------------------------------------------------\n[INFO]  T E S T S\n[INFO] -------------------------------------------------------\n[INFO] Running io.github.bonigarcia.wdm.agent.test.ChromeTest\n2020-05-12 15:38:49 [main] DEBUG io.github.bonigarcia.wdm.WdmAgent.transform(86) -- WebDriverManager Agent is going to resolve the driver for Chrome\n2020-05-12 15:38:49 [main] DEBUG i.g.b.wdm.cache.ResolutionCache.checkKeyInResolutionCache(183) -- Resolution chrome=81 in cache (valid until 15:23:29 13/05/2020 CEST)\n2020-05-12 15:38:49 [main] INFO  i.g.bonigarcia.wdm.WebDriverManager.resolveDriverVersion(571) -- Using chromedriver 81.0.4044.138 (since Chrome 81 is installed in your machine)\n2020-05-12 15:38:49 [main] DEBUG i.g.bonigarcia.wdm.WebDriverManager.manage(520) -- Driver chromedriver 81.0.4044.138 found in cache\n2020-05-12 15:38:49 [main] INFO  i.g.bonigarcia.wdm.WebDriverManager.exportDriver(615) -- Exporting webdriver.chrome.driver as /home/boni/.m2/repository/webdriver/chromedriver/linux64/81.0.4044.138/chromedriver\nStarting ChromeDriver 81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}) on port 31286\n2020-05-12 15:38:50 [main] DEBUG i.g.b.wdm.agent.test.ChromeTest.test(54) -- The title of https://bonigarcia.github.io/selenium-jupiter/ is Selenium-Jupiter: JUnit 5 extension for Selenium\n[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.814 s - in io.github.bonigarcia.wdm.agent.test.ChromeTest\n[INFO] Running io.github.bonigarcia.wdm.agent.test.FirefoxTest\n2020-05-12 15:46:04 [main] DEBUG io.github.bonigarcia.wdm.WdmAgent.transform(86) -- WebDriverManager Agent is going to resolve the driver for Firefox\n2020-05-12 15:46:04 [main] DEBUG i.g.b.wdm.cache.ResolutionCache.checkKeyInResolutionCache(183) -- Resolution firefox=76 in cache (valid until 15:45:41 13/05/2020 CEST)\n2020-05-12 15:46:04 [main] INFO  i.g.bonigarcia.wdm.WebDriverManager.resolveDriverVersion(571) -- Using geckodriver 0.26.0 (since Firefox 76 is installed in your machine)\n2020-05-12 15:46:04 [main] DEBUG i.g.bonigarcia.wdm.WebDriverManager.manage(520) -- Driver geckodriver 0.26.0 found in cache\n2020-05-12 15:46:04 [main] INFO  i.g.bonigarcia.wdm.WebDriverManager.exportDriver(615) -- Exporting webdriver.gecko.driver as /home/boni/.m2/repository/webdriver/geckodriver/linux64/0.26.0/geckodriver\n2020-05-12 15:46:07 [main] DEBUG i.g.b.wdm.agent.test.FirefoxTest.test(54) -- The title of https://bonigarcia.github.io/selenium-jupiter/ is Selenium-Jupiter: JUnit 5 extension for Selenium\n[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.163 s - in io.github.bonigarcia.wdm.agent.test.FirefoxTest\n[INFO]\n[INFO] Results:\n[INFO]\n[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0\n[INFO]\n[INFO] ------------------------------------------------------------------------\n[INFO] BUILD SUCCESS\n[INFO] ------------------------------------------------------------------------\n[INFO] Total time:  10.017 s\n[INFO] Finished at: 2020-05-12T15:46:10+02:00\n[INFO] ------------------------------------------------------------------------\n```\n\n## Help\n\nIf you have questions on how to use WebDriverManager properly with a special configuration or suchlike, please consider asking a question on [Stack Overflow] and tag it with  *webdrivermanager-java*.\n\n## Support\n\nWebDriverManager is part of [OpenCollective], an online funding platform for open and transparent communities. You can support the project by contributing as a backer (i.e., a personal [donation] or [recurring contribution]) or as a [sponsor] (i.e., a recurring contribution by a company).\n\n### Backers\n\n\u003ca href=\"https://opencollective.com/webdrivermanager\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/webdrivermanager/backers.svg?width=890\"\u003e\u003c/a\u003e\n\n### Sponsors\n\n\u003ca href=\"https://opencollective.com/webdrivermanager/sponsor/0/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/webdrivermanager/sponsor/0/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/webdrivermanager/sponsor/1/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/webdrivermanager/sponsor/1/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/webdrivermanager/sponsor/2/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/webdrivermanager/sponsor/2/avatar.svg\"\u003e\u003c/a\u003e\n\n## About\n\nWebDriverManager (Copyright \u0026copy; 2015-2022) is a project created and maintained by [Boni Garcia] licensed under [Apache 2.0 License].\n\n[Apache 2.0 License]: https://www.apache.org/licenses/LICENSE-2.0\n[Boni Garcia]: https://bonigarcia.github.io/\n[Selenium WebDriver]: https://docs.seleniumhq.org/projects/webdriver/\n[WebDriverManager]:https://github.com/bonigarcia/webdrivermanager/\n[Logo]: https://bonigarcia.github.io/img/webdrivermanager.png\n[GitHub Repository]: https://github.com/bonigarcia/wdm-agent-example\n[Stack Overflow]: https://stackoverflow.com/questions/tagged/webdrivermanager-java\n[OpenCollective]: https://opencollective.com/webdrivermanager\n[donation]: https://opencollective.com/webdrivermanager/donate\n[recurring contribution]: https://opencollective.com/webdrivermanager/contribute/backer-8132/checkout\n[sponsor]: https://opencollective.com/webdrivermanager/contribute/sponsor-8133/checkout\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonigarcia%2Fwdm-agent-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbonigarcia%2Fwdm-agent-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonigarcia%2Fwdm-agent-example/lists"}