GithubHelp home page GithubHelp logo

joshuamcclure / attest-selenium-python Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 260 KB

An integration of Attest HTML and Selenium to the Python language.

License: Mozilla Public License 2.0

Python 0.69% JavaScript 99.14% RobotFramework 0.17%

attest-selenium-python's Introduction

⚠️ THIS REPOSITORY HAS BEEN DEPRECATED ⚠️

axe DevTools Enterprise has an officially support Python integration. Please use that instead. This integrations repository is no longer actively maintained.

attest-selenium-python

attest-selenium-python integrates Attest HTML and selenium to enable automated web accessibility testing.

This project is a fork of the axe-selenium-python project, but uses Attest instead of Axe-core. Please see the sourced repo for more information: https://github.com/mozilla-services/axe-selenium-python.

THIS IS MEANT TO BE A SAMPLE/DEMONSTRATION INTEGRATION. Not approved for official production usage.

Requirements

You will need the following prerequisites in order to use attest-selenium-python:

  • selenium >= 3.0.0
  • Python 2.7 or 3.6
  • Attest HTML
  • The appropriate driver for the browser you intend to use, downloaded and added to your path, e.g. geckodriver for Firefox:

Installation

To install attest-selenium-python:

$ git clone [email protected]:joshuamcclure/attest-selenium-python.git
$ cd attest-selenium-python
$ pip install -r requirements.txt
$ npm install
$ python3 test.py

Usage

# found in ./test.py

from selenium import webdriver
from attest_selenium_python import Attest

def test_google():
    driver = webdriver.Firefox()
    driver.get("http://www.google.com")
    attest = Attest(driver)
    # Inject Attest javascript into page.
    attest.inject()
    # Run axe accessibility checks.
    results = attest.run()

    # Write results to file
    attest.write_results(results)
    attest.reporter()

    driver.close()

attest-selenium-python's People

Contributors

joshuamcclure avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.