{"id":16536819,"url":"https://github.com/eliasnogueira/selenium-read-qrcode","last_synced_at":"2026-03-07T21:02:07.246Z","repository":{"id":147153606,"uuid":"121703171","full_name":"eliasnogueira/selenium-read-qrcode","owner":"eliasnogueira","description":"How to read QR Code content from a web app using Selenium and Zxing","archived":false,"fork":false,"pushed_at":"2021-02-11T20:49:49.000Z","size":24,"stargazers_count":5,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T00:43:34.514Z","etag":null,"topics":["java","qrcode","selenium","selenium-webdriver","testautomation","webdrivermanager","webtest","zxing"],"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/eliasnogueira.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}},"created_at":"2018-02-16T01:17:20.000Z","updated_at":"2023-12-05T06:40:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a718d4c-d009-4558-a146-05de53596591","html_url":"https://github.com/eliasnogueira/selenium-read-qrcode","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/eliasnogueira/selenium-read-qrcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliasnogueira%2Fselenium-read-qrcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliasnogueira%2Fselenium-read-qrcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliasnogueira%2Fselenium-read-qrcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliasnogueira%2Fselenium-read-qrcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eliasnogueira","download_url":"https://codeload.github.com/eliasnogueira/selenium-read-qrcode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliasnogueira%2Fselenium-read-qrcode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30231490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: 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","qrcode","selenium","selenium-webdriver","testautomation","webdrivermanager","webtest","zxing"],"created_at":"2024-10-11T18:33:30.538Z","updated_at":"2026-03-07T21:02:07.231Z","avatar_url":"https://github.com/eliasnogueira.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Selenium Read QRCode\n\nThis project shows how to read the QRCode content from a webapp using Selenium and ZXing.\n\n## Technologies in use\n* [Java](https://www.oracle.com/java/technologies/javase-downloads.html) as the programming language\n* [Selenium](http://selenium.dev/) as the web test automation tool\n* [Zxing](https://github.com/zxing/zxing) as the library to decode the QRCode content\n* [AssertJ](https://joel-costigliola.github.io/assertj/) as the assertion library\n* [JUnit 5](https://junit.org/junit5/) as the test tool to support the test automation script\n* [WebDriverManager](https://github.com/bonigarcia/webdrivermanager) as the browser binary management library\n\n## How to run this project\n\n### Preconditions\n- Java JDK \u003e=11\n- Google Chrome installed\n\n### Steps\n\n### Running using the command line\n1. Go do the project directory and run `mvn verify -Dmaven.test.skip=true`\n2. Run `mvn test` to run the test\n\n### Running in your IDE\n1. Open this project in your preferred IDE\n2. Open the `QRCodeTest` class placed in `src/test/java`\n3. Run the test\n\n### Expected result\nYou can expect a successful execution.\nThe test will read the QRCode content and assert by its expectation.\n\n## What does the tests do\n- Open the browser in a page that has a QRCode\n- In the test that reads the image src as path `readQRCodeFromURL`  \n  - Get the image path and transform it in a `BufferedImage`\n- In the test that reads the image src as Base64 `readQRCodeFromBase64`\n    - Get the Base64 content and transform it in a `BufferedImage`  \n- Process the image and decode it using ZXing\n- Return the QRCode content\n- Assert the QRCode content\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliasnogueira%2Fselenium-read-qrcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feliasnogueira%2Fselenium-read-qrcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliasnogueira%2Fselenium-read-qrcode/lists"}