{"id":23286356,"url":"https://github.com/bredah/selenium-python","last_synced_at":"2026-05-06T00:38:57.622Z","repository":{"id":268620590,"uuid":"904403754","full_name":"bredah/selenium-python","owner":"bredah","description":"Python Selenium automation framework using Page Object Model (POM), Dockerized Selenium Grid, and Allure reporting","archived":false,"fork":false,"pushed_at":"2024-12-17T21:56:46.000Z","size":37,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-28T18:08:51.194Z","etag":null,"topics":["docker","pytest","python","selenium-webdriver","testing"],"latest_commit_sha":null,"homepage":"","language":"Python","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/bredah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-12-16T20:27:35.000Z","updated_at":"2025-01-02T17:57:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa60f071-6506-40a5-b9e8-610a74eee6a8","html_url":"https://github.com/bredah/selenium-python","commit_stats":null,"previous_names":["bredah/selenium-python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bredah/selenium-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredah%2Fselenium-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredah%2Fselenium-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredah%2Fselenium-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredah%2Fselenium-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bredah","download_url":"https://codeload.github.com/bredah/selenium-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredah%2Fselenium-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002995,"owners_count":26083499,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["docker","pytest","python","selenium-webdriver","testing"],"created_at":"2024-12-20T02:11:34.731Z","updated_at":"2025-10-10T07:02:42.652Z","avatar_url":"https://github.com/bredah.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python - Selenium\n\n## Prerequisites\n\nThis repository provides a Python Selenium test automation setup with support for execution using Docker and Selenium Grid.\n\nMake sure the following tools are installed:\n\n- Docker\n- Docker Compose\n- Poetry (for dependency management): [Install Poetry](https://python-poetry.org/docs/)\n- Pre-commit (for code validation): [Install Pre-commit](https://pre-commit.com/#install)\n- Makefile: [Windows - Installation](https://community.chocolatey.org/packages/make)\n\n## Environment Setup\n\n1. Docker Image Configuration\n\nCreate a `.env` file with the following settings to define the default platform and Selenium version:\n\n```sh\n# .env file\nDOCKER_DEFAULT_PLATFORM=linux/amd64\nSELENIUM_VERSION=4.27.0\n```\n\n2. Test Environment Configuration\n\nIn the same `.env` file, specify the browser, version, and whether to run in headless mode:\n\n```sh\n# .env file\nBROWSER_NAME=chrome\nBROWSER_VERSION=latest\nHEADLESS=true\n```\n\n3. Selenium Grid Configuration\n\nConfigure the Selenium Grid endpoint depending on your execution environment:\n\n- Local Execution:\n\n```sh\nSELENIUM_GRID=http://localhost:4444/wd/hub\n```\n\n- Docker Compose Execution\n```sh\nSELENIUM_GRID=http://selenium-hub:4444/wd/hub\n```\n\n## Project Setup\n\n1.\tInstall dependencies using Poetry:\n\n```sh\npoetry install\n# or\nmake setup\n```\n\n2.\tInitialize pre-commit in your development environment:\n\n```sh\npoetry run pre-commit install\n```\n\n## Execution\n\n- Local\n\n```sh\npoetry run pytest\n# or\nmake test\n```\n\n- With Docker Compose\n\n```sh\ndocker compose -f docker-compose.yaml run automation pytest\n# or\nmake docker-run\n```\n\n## Generate and View the Allure Report:\n\nAll test results and reports are saved in the allure-results directory.\n\nThe Allure Report provides the following insights:\n\n- Test Status: Passed, Failed, and Skipped tests.\n- Steps Execution: Detailed steps executed during the tests.\n- Attachments: Screenshots, logs, or additional information on failure.\n\nAfter the test execution, generate the Allure Report using the following command:\n\n```sh\npoetry run allure serve ./allure-results\n# or\nmake report\n```\n\n\u003e \tThe report will automatically open in your default browser.\n\n## Project Structure\n\nThe following is the clean directory structure of the project:\n\n```plaintext\n.\n├── pages/                      # Page Object Model (POM) for different pages\n│   ├── base_page.py            # Base class for all pages\n│   ├── heroku/                 # Heroku-related page objects\n│   ├── google/                 # Google-related page objects\n├── src/                        # Core logic and helpers\n│   ├── driver_factory.py       # WebDriver factory for Selenium\n│   ├── driver_manager.py       # Manages WebDriver instances\n│   ├── execution_manager.py    # Manages execution environment\n│   ├── helpers/                # Helper utilities\n└── .pytest.ini                 # Pytest configuration\n```\n\n## Best Practices\n\n- Always use pre-commit to validate your code before each commit.\n- Run tests locally and validate the environment before integrating with Selenium Grid.\n- Use headless mode to optimize test execution in CI/CD environments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbredah%2Fselenium-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbredah%2Fselenium-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbredah%2Fselenium-python/lists"}