Skip to content

Clarify arguments to axe.run() #178

@dvarrazzo

Description

@dvarrazzo

Looking at the code, it seems that axe.run() takes arguments as strings representing Javascript objects:

https://github.com/mozilla-services/axe-selenium-python/blob/270c8cd5aed76e31d8c9086e397a487126425026/axe_selenium_python/axe.py#L36-L52

This is a surprising interface for a Python object, and I can't find it documented anywhere, or exercised in the unit test. What is the correct way of specifying Axe the following options?

{"runOnly": {"type": "tag", "value": ["wcaga2a"]}}

Maybe you need:

  • an example to show the correct way to call the function
  • if the objects are not strings then json.dumps() them

or maybe I'm reading all wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions