{"id":34108220,"url":"https://github.com/theboredgenius/web-automation","last_synced_at":"2026-04-02T03:17:41.391Z","repository":{"id":64461424,"uuid":"576004679","full_name":"theboredgenius/web-automation","owner":"theboredgenius","description":"Framework built on top of Selenium framework for easy setup and config","archived":false,"fork":false,"pushed_at":"2022-12-22T07:02:14.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-17T01:28:24.959Z","etag":null,"topics":["automation","selenium","webdriver"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/web-automation/","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/theboredgenius.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}},"created_at":"2022-12-08T19:41:15.000Z","updated_at":"2022-12-29T18:04:51.000Z","dependencies_parsed_at":"2022-12-30T20:33:26.488Z","dependency_job_id":null,"html_url":"https://github.com/theboredgenius/web-automation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/theboredgenius/web-automation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theboredgenius%2Fweb-automation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theboredgenius%2Fweb-automation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theboredgenius%2Fweb-automation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theboredgenius%2Fweb-automation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theboredgenius","download_url":"https://codeload.github.com/theboredgenius/web-automation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theboredgenius%2Fweb-automation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31295028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"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":["automation","selenium","webdriver"],"created_at":"2025-12-14T18:14:56.194Z","updated_at":"2026-04-02T03:17:41.386Z","avatar_url":"https://github.com/theboredgenius.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Automation Framework\n\nThis is a project designed to minimize the setup and config of selenium and actions performed on elements\n\nTo use this library, create a snippet like below and populate the actions in the `run` method (remove the `pass` keyword)\n\n```python\nfrom web_automation.framework import Framework, Browser, By\n\nclass CustomClass(Framework):\n    def run(self):\n        pass\n\nCustomClass(\n    browser=Browser.CHROME,\n    wait=10,\n    headless=False,\n    download_path=''\n)\n```\n\nThe Constructor accepts 4 params (only one mandatory: browser) which is applied across the automation session\n- `browser: Browser` - The type of browser that you want to use, based on the [`Browser`](#browser-class) class\n- `wait: int` - The wait time for an element before throwing `NoSuchElementException` exception, default value is `30` seconds\n- `headless: bool` - Boolean option to set the automation to use the browser in headless mode (runs in background and no visible browser window), default value is `False`\n- `download-path: str` - the path to store the downloaded files, default value is the system download folder\n\n---\n\n### Browser Class\n\nThe `Browser` enum from the module will provide the target browser required to run the automation.\n\nThe supported browsers are\n- Google Chrome\n- Microsoft Edge\n- Mozilla Firefox\n- Safari\n\n---\n\n### Element selection\n\nThe HTML elements in the browser can be selected using one of the below attributes\n\n- id\n- name\n- tag name\n- class name\n- css selector\n- xpath\n- link text\n- partial link text\n\nThese selectors are provided using the `By` class (Selenium Class)\n\n---\n\n### SelectBy Class\n\nThere are different ways to select an option in the dropdown menu. The `SelectBy` enum has the below listed options to select the item in the dropdown\n\n- Index\n- Text\n- Value\n\n---\n\n### Actions Available\n\nThe below methods are available in the Framework Class and should be used inside the run method prefixing `self.`\n\n\n- `type(elem_type, elem_id, value, clear)` - used to type the `value` in the element\n  - `elem_type: By` - one of the options from `By`\n  - `elem_id: str` - element ID value based on the `elem_type`\n  - `value: str` - value to be typed in the component\n  - `clear: bool` - Boolean value to clear the element before typing\n\n\n- `click(elem_type, elem_id)` - used to click the element\n  - `elem_type: By` - one fo the options from `By`\n  - `elem_id: str` - element ID value based on the `elem_type`\n\n\n- `select(elem_type, elem_id, select_by, value)` - used to select an options from the dropdown input\n  - `elem_type: By` - one of the options from `By`\n  - `elem_id: str` - element ID value based on the `elem_type`\n  - `select_by: SelectBy` - one of the options from `SelectBy`\n  - `value: str` - value for the `SelectBy` option type\n\n\n- `deselect(elem_type, elem_id)` - used to deselect a dropdown list\n  - `elem_type: By` - one of the options from `By`\n  - `elem_id: str` - element ID value based on the `elem_type`\n\n\n- `check_if_exists(elem_type, elem_id)` - used to check if the mentioned element exists in the page\n  - `elem_type: By` - one of the options from `By`\n  - `elem_id: str` - element ID value based on the `elem_type`\n\n\n- `navigate_to(url)` - used to navigate to the mentioned url\n  - `url: str` - Target url to be navigated to\n\n\n- `wait(wait_time)` - wait for mentioned time\n  - `wait_time: int` - wait for the mentioned number of seconds\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheboredgenius%2Fweb-automation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheboredgenius%2Fweb-automation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheboredgenius%2Fweb-automation/lists"}