# Testing: https://w3c.github.io/core-aam/#role-map-progressbar TEST_HTML = "
content
" def test_atspi(atspi, session, inline): session.url = inline(TEST_HTML) # Spec: # Role: ROLE_PROGRESS_BAR # Interface: Value # Because WAI-ARIA does not support modifying the value via the accessibility API, user agents MUST return false for all Value methods that provide a means to modify the value. node = atspi.find_node("test", session.url) assert atspi.Accessible.get_role(node) == atspi.Role.PROGRESS_BAR assert atspi.Accessible.get_value_iface(node) is not None # def test_axapi(axapi, session, inline): # session.url = inline(TEST_HTML) # # # Spec: # # AXRole: AXProgressIndicator # # AXSubrole: # def test_ia2(ia2, session, inline): # session.url = inline(TEST_HTML) # # # Spec: # # Role: ROLE_SYSTEM_PROGRESSBAR # # State: STATE_SYSTEM_READONLY # # Interface: IAccessibleValue # def test_uia(uia, session, inline): # session.url = inline(TEST_HTML) # # # Spec: # # Control Type: ProgressBar
Control Pattern: RangeValue if aria-valuenow, aria-valuemax, or aria-valuemin is present