Python API Reference
The full Python API documentation is generated from type stubs with Sphinx.
pip install xa11yimport xa11y
tree = xa11y.app("Safari")
for button in tree.query("button"): print(button.name)
tree.press("button[name='OK']")Open Python API Docs →