{"id":20750644,"url":"https://github.com/kmd-vignesh/autovd-python-selenium","last_synced_at":"2026-04-18T16:37:18.579Z","repository":{"id":251070854,"uuid":"834210149","full_name":"KMD-Vignesh/AutoVD-Python-Selenium","owner":"KMD-Vignesh","description":"AutoVD framework for Python with Selenium","archived":false,"fork":false,"pushed_at":"2024-07-31T17:12:19.000Z","size":786,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T14:23:17.843Z","etag":null,"topics":["automation","pytest","python","selenium","webautomation"],"latest_commit_sha":null,"homepage":"","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/KMD-Vignesh.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":"2024-07-26T16:56:16.000Z","updated_at":"2024-08-08T06:32:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"12079857-3cd2-4333-8a3e-10df46e15c99","html_url":"https://github.com/KMD-Vignesh/AutoVD-Python-Selenium","commit_stats":null,"previous_names":["kmd-vignesh/autovd-python-selenium"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KMD-Vignesh/AutoVD-Python-Selenium","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KMD-Vignesh%2FAutoVD-Python-Selenium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KMD-Vignesh%2FAutoVD-Python-Selenium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KMD-Vignesh%2FAutoVD-Python-Selenium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KMD-Vignesh%2FAutoVD-Python-Selenium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KMD-Vignesh","download_url":"https://codeload.github.com/KMD-Vignesh/AutoVD-Python-Selenium/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KMD-Vignesh%2FAutoVD-Python-Selenium/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31976795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T16:27:12.723Z","status":"ssl_error","status_checked_at":"2026-04-18T16:27:11.140Z","response_time":103,"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":["automation","pytest","python","selenium","webautomation"],"created_at":"2024-11-17T08:28:12.798Z","updated_at":"2026-04-18T16:37:18.543Z","avatar_url":"https://github.com/KMD-Vignesh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AutoVD-Python-Selenium\n\nAutoVD-Python-Selenium is a Python-based automation framework designed for web and API testing. It leverages Selenium WebDriver for browser automation and provides a structured approach to creating page objects and test cases.\n\n## Author\n\n```yaml\nName : Vignesh D\nLocation : Chennai, India\n```\n\n[![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white)](https://www.linkedin.com/in/vigneshdhakshnamoorthy/)\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Creating a Page Class](#creating-a-page-class)\n  - [Writing a Test Case](#writing-a-test-case)\n- [Configuration](#configuration)\n- [Running Tests](#running-tests)\n- [VD Report](#vd-report)\n- [License](#license)\n\n## Installation\n\nTo use AutoVD-Python-Selenium, clone the repository and install the required dependencies:\n\n```bash\ngit clone https://github.com/KMD-Vignesh/AutoVD-Python-Selenium.git\ncd AutoVD-Python-Selenium\npip install -r requirements.txt\n```\n\n## Usage\n\n### Creating a Page Class\n\nTo create a page class, define a class that inherits from `PageVD` and initialize it with a `SeleniumVD` instance. Use the `Locator` class to define locators for web elements.\n\n```python\nfrom dataclasses import dataclass\nfrom typing import Self\n\nfrom library.helper.vd_selenium import SeleniumVD\nfrom library.interface.vd_page import PageVD\nfrom library.model.vd_class import Locator\n\n@dataclass\nclass LoginPage(PageVD):\n    def __init__(self, selenium: SeleniumVD) -\u003e None:\n        super().__init__(selenium=selenium)\n\n    username_input: Locator = Locator.ID(id=\"user-name\")\n    password_input: Locator = Locator.ID(id=\"password\")\n    login_button: Locator = Locator.ID(id=\"login-button\")\n\n    def login_to_app(self, username: str, password: str) -\u003e Self:\n        self.selenium.type(locator=self.username_input, type_value=username)\n        self.selenium.type(locator=self.password_input, type_value=password)\n        self.selenium.click(locator=self.login_button)\n        self.selenium.log(message=\"Action : Logged into Application\")\n        return self\n```\n\n### Writing a Test Case\n\nTo write a test case, use the `pytest` framework and import your page classes. Initialize the page class with a `SeleniumVD` instance and define your test logic.\n\n```python\nimport pytest\nfrom pages.sauce_lab.main_page import MainPage\n\nfrom library.helper.vd_selenium import SeleniumVD\nfrom library.model.vd_config import ConfigVD\n\n@pytest.mark.vignesh\n@pytest.mark.add_cart\ndef test_add_cart_badge_validation(selenium: SeleniumVD) -\u003e None:\n    main_page = MainPage(selenium=selenium)\n    main_page.open_app(url=ConfigVD.URL.get(key=\"SauceLab\")).login_to_app(\n        username=ConfigVD.Credentials.get(key=\"UserName\"),\n        password=ConfigVD.Credentials.get(key=\"Password\"),\n    ).assert_true(condition=main_page.is_main_page_loaded()).add_cart_product(\n        product_name=\"Sauce Labs Bike Light\"\n    ).assert_true(condition=main_page.get_product_count_badge() == 1).add_cart_product(\n        product_name=\"Sauce Labs Backpack\"\n    ).assert_true(condition=main_page.get_product_count_badge() == 2).add_cart_product(\n        product_name=\"Sauce Labs Onesie\"\n    ).assert_true(condition=main_page.get_product_count_badge() == 3)\n```\n\n## Configuration\n\nConfigurations such as URLs and credentials are managed through the `vd_config.yml`(setting/config/vd_config.yml). Ensure you have a configuration file\n\n```yaml\nProject:\n  ProjectName : SauceLab\n\nPytest:\n  IsDryRun : false\n  IsFailureRerun : false\n  ParallelCount : 5\n  IsParallelGroupFile : false\n  DeleteConftest : true\n  Tag : add_cart\n\nBrowser:\n  IsHeadless : false\n  DefaultBrowser : Chrome\n  IsMultiBrowser : false\n  DeleteDownloads : true\n  MultiBrowserList : \n    - Chrome\n    - Firefox\n    - Edge\n    - Safari\n\nAllure:\n  Generate : true\n  AutoOpenServer : false\n\nURL:\n  SauceLab : https://saucedemo.com\n  SelDev : https://www.selenium.dev/downloads/\n\nCredentials:\n  UserName : standard_user\n  Password : secret_sauce\n\n\n```\n\n## Running Tests\n\nTo run your tests, use the `pytest` command:\n\n```bash\npython runner.py\n```\n\n## VD Report\n\nThe framework generates two types of reports:\n\n1. **Current Execution Report**: A detailed report of the most recent test execution.\n2. **Trend Report**: A report showing trends over time, allowing you to filter results by date and time for detailed analysis.\n\n![VD Trends](vd_trends.gif)\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkmd-vignesh%2Fautovd-python-selenium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkmd-vignesh%2Fautovd-python-selenium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkmd-vignesh%2Fautovd-python-selenium/lists"}