# Testing: https://w3c.github.io/core-aam/#role-map-grid TEST_HTML = "
content
content
content
content
content
content
" def test_atspi(atspi, session, inline): session.url = inline(TEST_HTML) # Spec: # Role: ROLE_TABLE # Object Attribute: xml-roles:grid # Interface: Table # Interface: Selection # Because WAI-ARIA does not support modifying the selection via the accessibility API, user agents MUST return false for all Selection methods that provide a means to modify the selection. node = atspi.find_node("test", session.url) assert atspi.Accessible.get_role(node) == atspi.Role.TABLE assert "xml-roles:grid" in atspi.Accessible.get_attributes_as_array(node) assert atspi.Accessible.get_table_iface(node) is not None assert atspi.Accessible.get_selection_iface(node) is not None # def test_axapi(axapi, session, inline): # session.url = inline(TEST_HTML) # # # Spec: # # AXRole: AXTable # # AXSubrole: # # AXColumnHeaderUIElements: a list of pointers to the columnheader elements # # AXHeader: a pointer to the row or group containing those columnheader elements # # AXRowHeaderUIElements: a list of pointers to the rowheader elements # def test_ia2(ia2, session, inline): # session.url = inline(TEST_HTML) # # # Spec: # # Role: ROLE_SYSTEM_TABLE # # Object Attribute: xml-roles:grid # # Interface: IAccessibleTable2 # # Method: IAccessible::accSelect() # # Method: IAccessible::get_accSelection() # def test_uia(uia, session, inline): # session.url = inline(TEST_HTML) # # # Spec: # # Control Type: DataGrid # # Control Pattern: Grid # # Control Pattern: Table # # Control Pattern: Selection