{"id":13825365,"url":"https://github.com/dsymbol/selench","last_synced_at":"2025-07-11T11:31:08.328Z","repository":{"id":49437605,"uuid":"493303732","full_name":"dsymbol/selench","owner":"dsymbol","description":"Selenium wrapper for Python","archived":false,"fork":false,"pushed_at":"2024-09-29T01:00:39.000Z","size":72,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-09T13:20:27.790Z","etag":null,"topics":["selenium"],"latest_commit_sha":null,"homepage":"https://dsymbol.github.io/selench","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/dsymbol.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":"2022-05-17T15:12:16.000Z","updated_at":"2024-09-29T01:01:54.000Z","dependencies_parsed_at":"2024-05-01T20:19:04.433Z","dependency_job_id":"809ffb97-2b10-4105-8ac6-7e7b8b800d6a","html_url":"https://github.com/dsymbol/selench","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsymbol%2Fselench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsymbol%2Fselench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsymbol%2Fselench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsymbol%2Fselench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsymbol","download_url":"https://codeload.github.com/dsymbol/selench/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225465291,"owners_count":17478518,"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":["selenium"],"created_at":"2024-08-04T09:01:19.602Z","updated_at":"2024-11-20T03:31:09.055Z","avatar_url":"https://github.com/dsymbol.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Selench\n\nSelench is a wrapper that simplifies the use of the Selenium library. \nIt provides a more concise syntax that makes the code more readable and easier to understand.\n\n### Key Features\n\n- Concise syntax\n- Less imports\n- Elements have an explicit wait time by default\n- Simple expected_conditions implementation as expect\n- Element type detection ( CSS \u0026 XPATH )\n\n## Installation\n\nTo install the library, use pip:\n\n```bash\npip install selench\n```\n\nAlternatively, install the latest directly from the GitHub repository:\n```bash\npip install git+https://github.com/dsymbol/selench.git\n```\n\n## Examples\n\nNavigate to DuckDuckGo and search for 'Hello World!'\n\n```py\nfrom selench import Selench, Keys\n\ndriver = Selench()\ndriver.get('https://duckduckgo.com')\ndriver.element('[name=q]').send_keys('Hello World!', Keys.ENTER)\ndriver.quit()\n```\n\nUsing PyTest: navigate to DuckDuckGo and search for 'github' assert titles contain 'github'\n\n```py\nfrom selench import Selench, Keys\nimport pytest\n\n@pytest.fixture\ndef driver():\n    driver = Selench()\n    yield driver\n    driver.quit()\n\ndef test_ddg_search_query(driver):\n    keyword = 'github'\n    driver.get('https://duckduckgo.com/')\n    driver.element('[name=q]').send_keys(keyword, Keys.ENTER)\n    driver.expect.page_title_to_contain(keyword)\n    titles = driver.elements('a[data-testid=result-title-a] span')\n\n    for title in titles:\n        assert keyword in title.text.lower()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsymbol%2Fselench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsymbol%2Fselench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsymbol%2Fselench/lists"}