Skip to content

Python API Reference

The full Python API documentation is generated from type stubs with Sphinx.

Terminal window
pip install xa11y
import xa11y
tree = xa11y.app("Safari")
for button in tree.query("button"):
print(button.name)
tree.press("button[name='OK']")

Open Python API Docs →