{"id":13501714,"url":"https://github.com/wgnet/webium","last_synced_at":"2025-10-28T05:30:28.383Z","repository":{"id":25901936,"uuid":"29342579","full_name":"wgnet/webium","owner":"wgnet","description":"Webium is a Page Object pattern implementation library for Python (http://martinfowler.com/bliki/PageObject.html). It allows you to extend WebElement class to your custom controls like Link, Button and group them as pages.","archived":false,"fork":false,"pushed_at":"2017-01-04T22:03:32.000Z","size":1408,"stargazers_count":161,"open_issues_count":5,"forks_count":37,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-02-05T16:13:24.856Z","etag":null,"topics":["page-object","python","selenium","selenium-webdriver","webdriver"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wgnet.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":"2015-01-16T09:51:41.000Z","updated_at":"2024-09-02T13:52:58.000Z","dependencies_parsed_at":"2022-07-27T05:46:18.151Z","dependency_job_id":null,"html_url":"https://github.com/wgnet/webium","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgnet%2Fwebium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgnet%2Fwebium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgnet%2Fwebium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgnet%2Fwebium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wgnet","download_url":"https://codeload.github.com/wgnet/webium/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238597394,"owners_count":19498401,"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":["page-object","python","selenium","selenium-webdriver","webdriver"],"created_at":"2024-07-31T22:01:47.264Z","updated_at":"2025-10-28T05:30:27.804Z","avatar_url":"https://github.com/wgnet.png","language":"Python","readme":"# Webium\n\n[![PyPI](https://img.shields.io/pypi/v/webium.svg?maxAge=3600)](https://pypi.python.org/pypi/webium)\n[![Python Versions](https://img.shields.io/pypi/pyversions/webium.svg?maxAge=3600)](https://pypi.python.org/pypi/webium)\n[![Build Status](https://img.shields.io/travis/wgnet/webium/master.svg?maxAge=3600)](https://travis-ci.org/wgnet/webium)\n\nWebium is a Page Object pattern implementation library for Python (http://martinfowler.com/bliki/PageObject.html).\n\nIt allows you to extend WebElement class to your custom controls like Link, Button and group them as pages.\n\n## Installation\n\nThe latest stable version is available on PyPI:\n\n    pip install webium\n\n## Usage\n\nMain classes are:\n\n- webium.Find\n- webium.Finds\n- webium.BasePage\n\nBasic usage example:\n\n```python\nfrom selenium.webdriver.common.by import By\nfrom selenium.webdriver.remote.webelement import WebElement\nfrom webium.controls.link import Link\nfrom webium.driver import get_driver\nfrom webium import BasePage, Find, Finds\n\n\nclass GooglePage(BasePage):\n    url = 'http://www.google.com'\n\n    text_field = Find(by=By.NAME, value='q')\n    button = Find(by=By.NAME, value='btnK')\n\n\nclass ResultItem(WebElement):\n    link = Find(Link, By.XPATH, './/h3/a')\n\n\nclass ResultsPage(BasePage):\n    stat = Find(by=By.ID, value='resultStats')\n    results = Finds(ResultItem, By.XPATH, '//div/li')\n\n\nif __name__ == '__main__':\n    home_page = GooglePage()\n    home_page.open()\n    home_page.text_field.send_keys('Page Object')\n    home_page.button.click()\n    results_page = ResultsPage()\n    print('Results summary: ' + results_page.stat.text)\n    for item in results_page.results:\n        print(item.link.text)\n    get_driver().quit()\n```\n\nMore usage details are available here: http://wgnet.github.io/webium/\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgnet%2Fwebium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwgnet%2Fwebium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgnet%2Fwebium/lists"}