{"id":16535922,"url":"https://github.com/aleksandr-kotlyar/python-gitlabci-selenium","last_synced_at":"2025-10-28T12:30:22.888Z","repository":{"id":181036211,"uuid":"251095685","full_name":"aleksandr-kotlyar/python-gitlabci-selenium","owner":"aleksandr-kotlyar","description":"Python project template for multi-browser Selenium tests execution at GitLabCI and locally using Docker.","archived":false,"fork":false,"pushed_at":"2021-07-08T00:51:59.000Z","size":374,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-07-13T19:47:16.210Z","etag":null,"topics":["docker","gitlab-ci","python","selenium"],"latest_commit_sha":null,"homepage":"https://gitlab.com/aleksandr-kotlyar/python-gitlabci-selenium","language":"Python","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/aleksandr-kotlyar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2020-03-29T17:48:46.000Z","updated_at":"2023-07-13T19:47:17.563Z","dependencies_parsed_at":"2023-07-13T19:57:27.899Z","dependency_job_id":null,"html_url":"https://github.com/aleksandr-kotlyar/python-gitlabci-selenium","commit_stats":null,"previous_names":["aleksandr-kotlyar/python-gitlabci-selenium"],"tags_count":4,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleksandr-kotlyar%2Fpython-gitlabci-selenium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleksandr-kotlyar%2Fpython-gitlabci-selenium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleksandr-kotlyar%2Fpython-gitlabci-selenium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleksandr-kotlyar%2Fpython-gitlabci-selenium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aleksandr-kotlyar","download_url":"https://codeload.github.com/aleksandr-kotlyar/python-gitlabci-selenium/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219859539,"owners_count":16556035,"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":["docker","gitlab-ci","python","selenium"],"created_at":"2024-10-11T18:29:15.927Z","updated_at":"2025-10-28T12:30:17.614Z","avatar_url":"https://github.com/aleksandr-kotlyar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Selenium with Docker and GitLab\n\n![GitHub statistics](https://raw.githubusercontent.com/aleksandr-kotlyar/python-gitlabci-selenium/traffic-2021/traffic-python-gitlabci-selenium/in_2021.svg)\n![GitHub views](https://raw.githubusercontent.com/aleksandr-kotlyar/python-gitlabci-selenium/traffic-2021/traffic-python-gitlabci-selenium/views.svg)\n![GitHub views per week](https://raw.githubusercontent.com/aleksandr-kotlyar/python-gitlabci-selenium/traffic-2021/traffic-python-gitlabci-selenium/views_per_week.svg)\n![GitHub clones](https://raw.githubusercontent.com/aleksandr-kotlyar/python-gitlabci-selenium/traffic-2021/traffic-python-gitlabci-selenium/clones.svg)\n![GitHub clones per week](https://raw.githubusercontent.com/aleksandr-kotlyar/python-gitlabci-selenium/traffic-2021/traffic-python-gitlabci-selenium/clones_per_week.svg)\n\n## About\nPython project template for those who want to quickly start running their Selenium tests in GitLabCI. The template will be helpful enough for the first time if you just starting new test automation project and need a simple CI or even if you are new to GitLab, Docker, Selenium but need to run Selenium tests in CI.\n#### Browsers support\n- Chrome (default)\n- Firefox\n## GitLab Usage\n- To run job with Chrome just run pipeline with one of the Triggers\n- To run job with Firefox set GitLab variable BROWSER=firefox and run pipeline with one of the Triggers \n#### CI Triggers\n- **Manual** \"Run pipeline\" from WebUI\n- **Schedule** to start pipeline by cron\n- **Push** commit to gitlab and pipeline will start automatically\n- **Trigger** API endpoint to start pipeline\n## Local Usage\nPrepare\n```shell script\ndocker run -d -p 4444:4444 --net grid --name selenium-hub selenium/hub:3.141.59\ndocker run -d --net grid -e HUB_HOST=selenium-hub --name chrome -v /dev/shm:/dev/shm selenium/node-chrome\ndocker run -d --net grid -e HUB_HOST=selenium-hub --name firefox -v /dev/shm:/dev/shm selenium/node-firefox\n```\nRun tests\n```shell script\n# tests on Chrome\npytest\n# or\npytest --browser=chrome\n# tests on Firefox \npytest --browser=firefox\n```\nEnd of work\n```shell script\ndocker stop selenium-hub chrome firefox\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleksandr-kotlyar%2Fpython-gitlabci-selenium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleksandr-kotlyar%2Fpython-gitlabci-selenium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleksandr-kotlyar%2Fpython-gitlabci-selenium/lists"}