{"id":22147284,"url":"https://github.com/centerforopenscience/selenium-a11y","last_synced_at":"2026-03-11T05:32:11.033Z","repository":{"id":40263197,"uuid":"377916188","full_name":"CenterForOpenScience/selenium-a11y","owner":"CenterForOpenScience","description":"Accessibility Testing of OSF","archived":false,"fork":false,"pushed_at":"2025-02-03T15:20:23.000Z","size":342,"stargazers_count":5,"open_issues_count":1,"forks_count":4,"subscribers_count":11,"default_branch":"develop","last_synced_at":"2025-08-22T00:41:58.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/CenterForOpenScience.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,"zenodo":null}},"created_at":"2021-06-17T17:48:01.000Z","updated_at":"2025-02-03T15:20:27.000Z","dependencies_parsed_at":"2023-01-30T03:45:40.723Z","dependency_job_id":"3a04a313-7bf7-4d33-9b3c-2c98c8d57228","html_url":"https://github.com/CenterForOpenScience/selenium-a11y","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CenterForOpenScience/selenium-a11y","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fselenium-a11y","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fselenium-a11y/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fselenium-a11y/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fselenium-a11y/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CenterForOpenScience","download_url":"https://codeload.github.com/CenterForOpenScience/selenium-a11y/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fselenium-a11y/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30372171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"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":[],"created_at":"2024-12-01T23:15:49.580Z","updated_at":"2026-03-11T05:32:11.013Z","avatar_url":"https://github.com/CenterForOpenScience.png","language":"Python","readme":"# Selenium A11y\n\nThis is the UI test automation for Accessibility Testing of OSF. It uses Selenium WebDriver and Pytest to create tests and the [axe-core](https://github.com/dequelabs/axe-core) test engine to evaluate accessibility rules. \n\n\n## Setting up\n\n### Prerequisites\n\n\nYou'll need the webdriver of your choice and Python3.\n\n##### Installing a webdriver:\n\nIn order for Selenium to be able to control your local browser, you will need to install [drivers](https://seleniumhq.github.io/selenium/docs/api/py/#drivers) for any browsers in which you desire to run these tests. Start with a driver such as [GekoDriver](https://github.com/mozilla/geckodriver/releases) (firefox) or [ChromeDriver](https://sites.google.com/chromium.org/driver). (Note: IE is not supported. Safari is only partially supported -- running the tests in Safari is not recommended).\n\nGo to any of the driver links above, install the applicable driver for your system, and move the executable into your *PATH*, e. g., place it in */usr/bin* or */usr/local/bin*.\n\n\n##### Installing Python3:\n\nFor MacOSX users:\n\n```bash\nbrew install python3\n```\n\nFor Ubuntu users:\n\n```bash\napt-get install python3\n\n```\n\nIt is also suggested you use a virtual environment. After completing the installation of Python3, this can be done with the following commands:\n\n```bash\npip install virtualenv\npip install virtualenvwrapper\nmkvirtualenv --python=python3 selenium-a11y\n```\n\n### Installing\n\n\nNow you can install the requirements:\n\n```\npip install -r requirements.txt\n```\nAnd you should be good to go!\n\n## Running tests\n\nIn order to run the whole test suite simply use pytest:\n\n```bash\npytest\n\n```\n\nYou can run specific test classes:\n\n```bash\npytest tests/test_a11y_registries.py::TestSubmittedRegistrationPages\n\n```\n\nOr specific tests:\n\n```bash\npytest tests/test_a11y_registries.py::TestSubmittedRegistrationPages::test_accessibility_files_list_page\n\n```\n\nYou can even run tests using custom markers. For example, here's how to run all the accessibility tests for Ember pages:\n\n```bash\npytest -m ember_page\n\n```\n\nOr, here's how to run all the accessibility tests for Legacy pages:\n\n```bash\npytest -m legacy_page\n\n```\n\n\n#### There are also some helpful custom fixtures:\n\nWith \"--write_files\" you can turn off the default behavior of writing out the accessibility results to files in the \"a11y_results\" folder. For example:\n\n```bash\npytest --write_files false\n\n```\n\nAlso \"--exclude_best_practice\" allows you to ignore any accessibility rules that axe classifies as \"Best Practice\" amd only test with WCAG compliant rules. For example:\n\n```bash\npytest --exclude_best_practice true\n\n```\n\nSee the [pytest documentation](https://docs.pytest.org/en/latest/index.html) for more information on usage.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcenterforopenscience%2Fselenium-a11y","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcenterforopenscience%2Fselenium-a11y","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcenterforopenscience%2Fselenium-a11y/lists"}