{"id":19149762,"url":"https://github.com/justunsix/selenium-java-tests","last_synced_at":"2026-05-16T06:34:11.625Z","repository":{"id":44432035,"uuid":"372279785","full_name":"justunsix/selenium-java-tests","owner":"justunsix","description":"Template project to run tests with Selenium and Java","archived":false,"fork":false,"pushed_at":"2026-03-30T05:02:53.000Z","size":341,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-30T06:55:32.038Z","etag":null,"topics":["java","selenium","selnium-webdriver"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justunsix.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-05-30T17:47:00.000Z","updated_at":"2026-03-30T05:02:56.000Z","dependencies_parsed_at":"2025-12-29T21:05:19.650Z","dependency_job_id":null,"html_url":"https://github.com/justunsix/selenium-java-tests","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/justunsix/selenium-java-tests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justunsix%2Fselenium-java-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justunsix%2Fselenium-java-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justunsix%2Fselenium-java-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justunsix%2Fselenium-java-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justunsix","download_url":"https://codeload.github.com/justunsix/selenium-java-tests/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justunsix%2Fselenium-java-tests/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33092688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"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":["java","selenium","selnium-webdriver"],"created_at":"2024-11-09T08:09:33.291Z","updated_at":"2026-05-16T06:34:11.620Z","avatar_url":"https://github.com/justunsix.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Selenium Java Tests\n\n[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/justunsix/selenium-java-tests)\n\n## About The Project\n\nTemplate project to run tests with Selenium and Java.\n\n### Built with\n\n- [Selenium](https://www.selenium.dev/)\n- [Chrome driver](https://sites.google.com/chromium.org/driver/getting-started)\n  and Chrome browser for your platform. The driver must match with the browser\n  version.\n- [Java SE 10+](https://www.oracle.com/java/technologies/javase-downloads.html)\n\n## Getting Started\n\nGet a local copy up and running by following these steps.\n\n### Prerequisites\n\nChoose an option below. You can develop in your browser or locally.\n\n#### Option 1. Development Environment in Browser\n\n[Gitpod](https://www.gitpod.io/features) is an online dev environment based on\nVS Code/Theia and can launch ready-to-code development environments for GitHub\nprojects with a single click. It is free for open source projects like this one\nand a nice way to sharing code with others. You can open\n\u003chttps://gitpod.io/#https://github.com/justunsix/selenium-java-tests\u003e or push\nthe Gitpod ready-to-code button at the top of this README.\n\nThis option right now is only useful for development. To run the program, a\nlocal installation is recommended since it requires a Chrome browser installed.\n\n#### Option 2. Install Locally\n\n1. Clone this repository to your local computer using\n   `git clone https://github.com/justunsix/selenium-java-tests.git`.\n2. [Install Java Development Kit](https://www.oracle.com/java/technologies/javase-downloads.html)\n\n- Set your `JAVA_HOME` environment variable to point to Java folder and add the\n  JDK's bin folder to your `path` environment variable.\n\n1. [Install Maven](https://maven.apache.org/install.html) - add Maven's bin\n   folder to your `path` environment variable.\n2. Install [Chrome](https://www.google.com/intl/en_ca/chrome/) in the default\n   location and the\n   [Chrome driver](https://sites.google.com/chromium.org/driver/getting-started),\n   making sure the versions match and add the Chrome driver binary to your\n   `path` environment variable.\n   [Web Driver Manager](https://github.com/bonigarcia/webdrivermanager) is an\n   alternative and efficient way to manage this part; however, this repository\n   does not use it as a dependency.\n   1. Add the chrome driver folder to your 'path' environment variable.\n   2. Open your Chrome browser to check it works. If Chrome opens up as a black\n      screen\n      [disable hardware acceleration using this workaround](https://support.google.com/chrome/thread/17216800/completely-black-screen-when-opening-chrome?hl=en\u0026msgid=23887976#).\n\n### Installation and Run\n\nConfirm installations and pathes are setup in a terminal\n\n```sh\n# Maven\nmvn -v\n\n# Java\njava -version\n\n```\n\nBuild and run the project\n\n```sh\n\ncd training\nmvn package\n\n# Run main method in class AppExample\nmvn exec:java -Dexec.mainClass=\"training.AppExample\"\n\n```\n\nAfter running it, Chrome will briefly open and visit\n\u003chttps://the-internet.herokuapp.com/\u003e, a site for test automation, and then\nclose. You will see something like below in the terminal indicating the driver\nvisited and got a link text meaning the run was successful.\n\n```log\n[[ChromeDriver: chrome on WINDOWS (d40a87asdas31c6a93304e19e3)] -\u003e partial link text: Testing]\n=== Test Driver Complete ===\n```\n\n## Usage\n\nInspect the Java model framework for \u003chttps://the-internet.herokuapp.com/\u003e and\n\u003chttps://formy-project.herokuapp.com/\u003e and see and modify test cases for\nThe-Internet site.\n\nWhen developing, you may want to download the dependency's source with\n`mvn dependency:sources` and/or Javadocs with\n`mvn dependency:resolve -Dclassifier=javadoc`\n\nPlaceholders:\n\n- Use this space to show useful examples of how a project can be used.\n  Additional screenshots, code examples and demos work well in this space. You\n  may also link to more resources.\n- For more examples, please refer to the Documentation\n\n## Roadmap\n\n- Follow course\n  [Seleium Webdriver Java course](https://github.com/angiejones/selenium-webdriver-java-course)\n  and try code here.\n\n## Contributing\n\nContributions are what make the open source community a good place to learn,\ninspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n## Contact\n\nJustin Tung - [@justin_tung](https://twitter.com/justin_tung/)\n\nProject Link:\n[https://github.com/justunsix/selenium-java-tests](https://github.com/justunsix/selenium-java-tests)\n\n## Acknowledgements\n\n- [Best-README-Template: A README template to jumpstart projects](https://github.com/othneildrew/Best-README-Template/)\n- Java code samples from\n  [Web Browser Automation with Selenium and Java](https://stackabuse.com/web-browser-automation-with-selenium-and-java/)\n  by Shadab Ansari for demonstration code in `AppExample.java`\n- Test automation site \u003chttps://the-internet.herokuapp.com/\u003e\n\n## Appendix: How this repository was set up\n\nInitialize project in this repository's folder using a Maven quickstart template\n\n```sh\nmvn archetype:generate -DgroupId=training -DartifactId=training -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.5 -DinteractiveMode=false\n```\n\nAdd [Selenium's dependency](https://www.selenium.dev/maven/) to Maven's pom.\nAdded\n[Chrome driver dependency from MVN](https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-chrome-driver/3.141.59)\nfor testing. Other WebDrivers can be added.\n\n## Appendix: Example Windows Setup to Meet Installation Requirements\n\n- [IntelliJ](https://www.jetbrains.com/idea/) or\n  [VS Code with Java Extensions](https://code.visualstudio.com/docs/java/java-tutorial)\n  per VS Code Java Tutorial and\n  [VS Code Java Linting](https://code.visualstudio.com/docs/java/java-linting) -\n  formatter, problem and vulnerability analysis\n- Install JDK (in VS Code quickstrart or separate installation like\n  [JDK 64 Portable (Windows)](https://portableapps.com/apps/utilities/jdkportable64).\n- Install Chrome and Chrome driver for Version 91.0.4472.77 (Official Build)\n  (32-bit).\n\n### Appendix: Other Stuff\n\n#### Download Dependency sources and/or Javadoc\n\nSee more options at\n[Maven download sources javadoc](https://www.baeldung.com/maven-download-sources-javadoc)\n\n```sh\n\nmvn dependency:sources\n\nmvn dependency:sources dependency:resolve -Dclassifier=javadoc\n\n```\n\nIf using VS Code, ctrl+click into a class and then\n[right click to attach the source for the dependency](https://github.com/redhat-developer/vscode-java/issues/1855#issuecomment-823142835).\n\n#### Settings.json\n\n```json\n    \"java.configuration.runtimes\": [\n        {\n             \"name\": \"JavaSE-1.8\",\n             \"path\": \"C:\\\\usr\\\\bin\\\\JDK64\",\n             \"sources\": \"C:\\\\usr\\\\bin\\\\JDK64\\\\lib\\\\src.zip\",\n             \"javadoc\": \"https://docs.oracle.com/javase/8/docs/api/\",\n             \"default\": true\n        },\n        {\n             // Installed with VS Code Java quickstart\n             \"name\": \"JavaSE-11\",\n             \"path\": \"C:\\\\Program Files\\\\AdoptOpenJDK\\\\jdk-11.0.11.9-hotspot\",\n             \"sources\": \"C:\\\\Program Files\\\\AdoptOpenJDK\\\\jdk-11.0.11.9-hotspot\\\\lib\\\\src.zip\",\n             \"javadoc\": \"https://docs.oracle.com/en/java/javase/11/docs/api/\",\n             \"default\": true\n        }\n        // Sonarlint: selenium-java-tests project binding, make sure to configure the connection in your workspace settings or global settings\n             \"sonarlint.connectedMode.project\": {\n             \"projectKey\": \"selenium-java-tests\"\n        }\n```\n\n### Other commands\n\n```sh\n# Run a single class\njava -cp target/base-1.0-SNAPSHOT.jar base.BaseTests\n\n# Execute a single method called testSuccessfulCloseAndSeeModalLink in ModalEntryAdTests class in src/test\nmvn -Dtest=HorizontalSliderTests#testSliding test\n\n# Run main testing class, cleanupDaemonThreads is required otherwise\n# there is a java.lang.IllegalThreadStateException or use System.exit(0);\n# at the end of the program\nmvn exec:java -Dexec.mainClass=\"training.AppExample\" -Dexec.cleanupDaemonThreads=false\n\n# Build, test and scan code for upload to sonarcloud.io\n# Requires access to the project in Sonar Cloud and\n# connect in environment variable / project settings \u003e Analysis method \u003e Manual\nmvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustunsix%2Fselenium-java-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustunsix%2Fselenium-java-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustunsix%2Fselenium-java-tests/lists"}