{"id":23300533,"url":"https://github.com/thivyashreens/pat-task-20","last_synced_at":"2026-04-29T17:03:35.304Z","repository":{"id":266508146,"uuid":"898552967","full_name":"ThivyashreeNS/PAT-Task-20","owner":"ThivyashreeNS","description":"Automation on the CoWIN and Labour Ministry websites using Selenium WebDriver","archived":false,"fork":false,"pushed_at":"2024-12-04T16:15:56.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T03:28:55.630Z","etag":null,"topics":["automated-testing","pytest","python","selenium"],"latest_commit_sha":null,"homepage":"https://www.cowin.gov.in/","language":"HTML","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/ThivyashreeNS.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-04T15:46:57.000Z","updated_at":"2024-12-10T06:42:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c7ed845-376d-4999-82dd-1ccbd3b55e86","html_url":"https://github.com/ThivyashreeNS/PAT-Task-20","commit_stats":null,"previous_names":["thivyashreens/pat-task-20"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThivyashreeNS%2FPAT-Task-20","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThivyashreeNS%2FPAT-Task-20/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThivyashreeNS%2FPAT-Task-20/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThivyashreeNS%2FPAT-Task-20/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThivyashreeNS","download_url":"https://codeload.github.com/ThivyashreeNS/PAT-Task-20/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247555140,"owners_count":20957713,"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":["automated-testing","pytest","python","selenium"],"created_at":"2024-12-20T09:16:55.415Z","updated_at":"2026-04-29T17:03:30.285Z","avatar_url":"https://github.com/ThivyashreeNS.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview:\nThis project demonstrates the use of Selenium WebDriver for automating web interactions with two government websites: CoWIN and Labour. It includes automation for navigating through various web pages, interacting with elements, and downloading files or images.\n\nThe project contains three main scripts:\n\n- Task_20_Cowin.py - Automates navigation on the CoWIN website.\n- Task_20_Labour.py - Automates interactions with the Labour Ministry website.\n- test_Cowin.py and test_Labour.py - Test scripts to verify the functionality of the web automation scripts.\n\n## Table of Contents:\n- [Features](#features)\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n- [Project Structure](#project-structure)\n- [Code Explanation](#Code-Explanation)\n\n## Features:\n- Navigate to the FAQ and Partners sections on the CoWIN website.\n\n- Handle multiple browser windows and perform actions like opening, switching, and closing windows.\n\n- Download PDF files and images from the Labour Ministry website.\n\n- Manage window handles for multiple browser tabs.\n\n- Automated testing using pytest to ensure the correctness of the scripts.\n\n## Prerequisites\n- Python 3.x\n- Required libraries:\n  - `selenium`\n  - `pytest`\n  - `webdriver-manager`\n  - `Requests`\n\n## Installation:\nTo successfully set up and run the Selenium Automation Testing Project, follow these steps:\n\n1. Ensure that you have Python 3.x installed on your machine. You can download it from  [python.org](https://www.python.org/).\n\n2. Familiarity with command-line interface (CLI) tools is recommended for executing commands.\n\n3. Set Up a Virtual Environment (Optional but Recommended):\n   - It's best practice to create a virtual environment to manage dependencies for your project:\n     \n     - Verify Python Virtual Environment: `Virtualenv --version`\n       \n     - Create Virtual Environment:  `virtualenv cd`\n       \n     - Activate Virtual Environment:  `Scripts\\Activate`\n       \n     - Deactivate Virtual Environment: `Scripts\\Deactivate`\n       \n4.  Install Required Libraries:\n    - Install the necessary Python libraries using pip. The required libraries for this project include:\n      - __Selenium :__ For web browser automation.\n        Install Python Selenium Module: `pip install selenium`\n        \n      - __Pytest :__ For running test cases and managing test execution.\n        `pip install pytest`\n         Pytest Report: `pip install pytest-html`\n        \n      - __requests :__ Used for downloading images from the Labour website.\n         `pip install requests`\n        \n      - __Webdriver-manager :__ To automatically manage browser drivers.\n          Install WebDriver Manager Module: `pip install webdriver-manager`\n\n## Project Structure\n```\nPAT Task 20/\n│\n├── Task_20_Cowin.py                # CoWIN website automation script\n├── Task_20_Labour.py               # Labour Ministry website automation script\n├── test_Cowin.py                   # Test file for CoWIN automation\n├── test_Labour.py                  # Test file for Labour automation\n├── downloaded_photos               # Downloaded photos from the Labour website\n└── README.md                       # Project description and usage\n```\n\n## Code Explanation\n### CoWIN Automation (Task_20_Cowin.py)\n\n- __WindowsAutomation:__ This class automates the browser actions on the CoWIN website. It clicks the FAQ and Partners links, handles multiple windows, and prints the window IDs.\n- __Test:__ The test verifies that three windows are opened (main window, FAQ, and Partners).\n\n### Labour Automation (Task_20_Labour.py)\n\n- __WindowsAutomation:__  This class interacts with the Labour website, closes an ad banner, downloads a PDF report, and downloads up to 10 photos from the media gallery.\n- __Test:__ The test verifies that exactly 10 photos have been downloaded.\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthivyashreens%2Fpat-task-20","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthivyashreens%2Fpat-task-20","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthivyashreens%2Fpat-task-20/lists"}