Igalia / acacia

Library for inspecting accessibility APIs
https://igalia.github.io/acacia
GNU Lesser General Public License v2.1
8 stars 1 forks source link

IA2: Investigate what fails when running dump tree against libreoffice #214

Closed spectranaut closed 6 months ago

spectranaut commented 7 months ago

When getting some node data on some nodes in libreoffice, we are getting error codes from the IA2 API.

For example, IAAction::toString throws on a menu item:

------> ROLE_SYSTEM_MENUITEM Name='File', Description='',  States=('FOCUSABLE', 'HASPOPUP', 'OPAQUE')
...
  File "C:\Users\spectranaut\repos\AXAccess\build\bin\dump_tree_ia2.py", line 28, in print_tree
    print("  " * level + "* " + action.toString())
                                ^^^^^^^^^^^^^^^^^
  File "C:\Users\spectranaut\repos\AXAccess\build\bin\acacia_ia2.py", line 314, in toString
    return _acacia_ia2_python.IAAction_toString(self)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: ERROR: get_name failed: E_NOTIMPL

And this failure:

--> IA2_ROLE_ROOT_PANE ROLE_SYSTEM_CLIENT Name='Untitled 1 — LibreOffice Writer', Description='',  States=('FOCUSABLE',)
...
  File "C:\Users\spectranaut\repos\AXAccess\build\bin\dump_tree_ia2.py", line 22, in print_tree
    properties = ia2.toString()
                 ^^^^^^^^^^^^^^
  File "C:\Users\spectranaut\repos\AXAccess\build\bin\acacia_ia2.py", line 280, in toString
    return _acacia_ia2_python.IA2_toString(self)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: ERROR: get_attributes failed: E_FAIL
spectranaut commented 6 months ago

this issue is really just this issue: #213 closing