{"id":26163626,"url":"https://github.com/andrew-costure/testing-with-selenium","last_synced_at":"2025-04-14T14:15:54.333Z","repository":{"id":281393031,"uuid":"925595685","full_name":"Andrew-Costure/testing-with-selenium","owner":"Andrew-Costure","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-08T18:46:03.000Z","size":7,"stargazers_count":23,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-14T14:15:48.413Z","etag":null,"topics":["javascript","python","selenium","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/Andrew-Costure.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":"2025-02-01T08:49:28.000Z","updated_at":"2025-04-01T04:54:30.000Z","dependencies_parsed_at":"2025-03-08T19:31:26.245Z","dependency_job_id":"8bbdc0e8-29fd-4d46-a657-31aa08cdc409","html_url":"https://github.com/Andrew-Costure/testing-with-selenium","commit_stats":null,"previous_names":["andrew-costure/testing-with-selenium"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andrew-Costure%2Ftesting-with-selenium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andrew-Costure%2Ftesting-with-selenium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andrew-Costure%2Ftesting-with-selenium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andrew-Costure%2Ftesting-with-selenium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Andrew-Costure","download_url":"https://codeload.github.com/Andrew-Costure/testing-with-selenium/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248894943,"owners_count":21179153,"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":["javascript","python","selenium","testing"],"created_at":"2025-03-11T14:36:37.893Z","updated_at":"2025-04-14T14:15:54.298Z","avatar_url":"https://github.com/Andrew-Costure.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testing with Selenium\n\n## Introduction\nThis project demonstrates automated testing using Selenium WebDriver. It includes test scripts for web applications to ensure functionality, performance, and usability.\n\n## Features\n- Automated UI testing using Selenium\n- Support for multiple browsers (Chrome, Firefox, Edge)\n- Integration with pytest for test execution\n- Data-driven testing using CSV or JSON files\n- Headless browser testing support\n- Logging and reporting using Allure\n\n## Prerequisites\n- Python 3.x installed\n- Browser drivers installed (ChromeDriver, GeckoDriver, etc.)\n- Required Python packages installed\n\n## Installation\nClone the repository and install dependencies:\n\n```sh\n# Clone the repository\ngit clone https://github.com/your-username/testing-with-selenium.git\ncd testing-with-selenium\n\n# Create a virtual environment (optional but recommended)\npython -m venv venv\nsource venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n\n# Install dependencies\npip install -r requirements.txt\n```\n\n## Configuration\nEnsure that the appropriate web driver is placed in the system PATH or specify its location in the script.\n\n## Running Tests\nExecute tests using pytest:\n\n```sh\npytest tests/\n```\n\nRun tests with detailed output:\n\n```sh\npytest -v --html=report.html --self-contained-html\n```\n\nRun tests in headless mode:\n\n```sh\npytest --headless\n```\n\n## Writing Your Own Tests\n1. Create a new test file in the `tests/` folder.\n2. Import `pytest` and `selenium`.\n3. Write test functions using `pytest` format.\n4. Use `setup` and `teardown` methods for driver initialization.\n\nExample:\n\n```python\nimport pytest\nfrom selenium import webdriver\n\ndef test_google_search():\n    driver = webdriver.Chrome()\n    driver.get(\"https://www.google.com\")\n    assert \"Google\" in driver.title\n    driver.quit()\n```\n\n## Reporting\nGenerate an HTML report:\n\n```sh\npytest --html=report.html\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrew-costure%2Ftesting-with-selenium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrew-costure%2Ftesting-with-selenium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrew-costure%2Ftesting-with-selenium/lists"}