From fbc4498becaa6a8cbe2723464cbd3ddfc3ef375a Mon Sep 17 00:00:00 2001 From: AutomatedTester Date: Tue, 24 Sep 2019 17:38:57 +0100 Subject: [PATCH 1/4] Add support for calculating the accessible label and the accessible role of elements Fixes #1439 --- index.html | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/index.html b/index.html index 1a7048ea9..3daab08f2 100644 --- a/index.html +++ b/index.html @@ -885,6 +885,18 @@

Endpoints

Is Element Enabled + + GET + /session/{session id}/element/{element id}/computedrole + Get Computed Role + + + + GET + /session/{session id}/element/{element id}/computedlabel + Get Computed Label + + POST /session/{session id}/element/{element id}/click @@ -5153,6 +5165,73 @@

Is Element Enabled

  • Return success with data enabled. + +

    +

    Get Computed Role

    + + + + + + + + + + +
    HTTP MethodURI Template
    GET/session/{session id}/element/{element id}/computedrole
    + +

    The remote end steps are: + +

      +
    1. If the current browsing context is no longer open, + return error with error code no such window. + +

    2. Handle any user prompts + and return its value if it is an error. + +

    3. Let element be the result + of trying to get a known connected element + with url variable element id. + +

    4. Let role be the result of computing the WAI-ARIA role. + +

    5. Return success with data role. +

    +
    + +
    +

    Get Computed Label

    + + + + + + + + + + +
    HTTP MethodURI Template
    GET/session/{session id}/element/{element id}/computedlabel
    + +

    The remote end steps are: + +

      +
    1. +

      If the current browsing context is no longer open, + return error with error code no such window. + +

    2. Handle any user prompts + and return its value if it is an error. + +

    3. Let element be the result + of trying to get a known connected element + with url variable element id. + +

    4. Let label be the result of ARIA computation for the Accessible Name of the element. + +

    5. Return success with data label. +

    +
    @@ -9513,6 +9592,24 @@

    Index

    -->
    +
    ARIA +
    +

    The following terms are defined + in the Accessible Rich Internet Applications (WAI-ARIA) 1.2 specification: [wai-aria-1.2] +

    + +
    Accessible Name and Description Computation +
    +

    The following terms are defined + in the Accessible Name and Description Computation 1.1 specification: [accname-1.1] +

    +
    Web App Security

    The following terms are defined in the Content Security Policy Level 3 specification: [[CSP3]] From 4dc54209c2f923b0e036bd23e4b1fc7d1ba4d47c Mon Sep 17 00:00:00 2001 From: AutomatedTester Date: Tue, 26 May 2020 17:35:55 +0100 Subject: [PATCH 2/4] Updated for review comments --- index.html | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index 3daab08f2..7d3d7f0c2 100644 --- a/index.html +++ b/index.html @@ -5181,7 +5181,7 @@

    Get Computed Role

    The remote end steps are: - +

    1. If the current browsing context is no longer open, return error with error code no such window. @@ -5214,15 +5214,15 @@

      Get Computed Label

      The remote end steps are: - +

      1. If the current browsing context is no longer open, return error with error code no such window. - +

      2. Handle any user prompts and return its value if it is an error. - +

      3. Let element be the result of trying to get a known connected element with url variable element id. @@ -5913,10 +5913,10 @@

        Element Send Keys

        Otherwise
          -
        1. If element does not currently have focus, +

        2. If element does not currently have focus, let current text length be the string length of element’s API value. - +

        3. Set the text insertion caret using set selection range using current text length for both the start and end parameters. @@ -9592,18 +9592,17 @@

          Index

          -->
          -
          ARIA +
          ARIA and related specifications

          The following terms are defined - in the Accessible Rich Internet Applications (WAI-ARIA) 1.2 specification: [wai-aria-1.2] + in the Accessible Rich Internet Applications (WAI-ARIA) 1.2 specification: [[wai-aria-1.2]]

          -
          Accessible Name and Description Computation

          The following terms are defined - in the Accessible Name and Description Computation 1.1 specification: [accname-1.1] + in the Accessible Name and Description Computation 1.1 specification: [[accname-1.1]]

        @@ -9605,7 +9605,7 @@

        Index

        in the Accessible Name and Description Computation 1.1 specification: [[accname-1.1]] From 580edd3bc38b616a13fa045d95adaeb39efc936c Mon Sep 17 00:00:00 2001 From: AutomatedTester Date: Fri, 29 May 2020 16:15:05 +0100 Subject: [PATCH 4/4] adding clarification after review comment. --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 16e44cccf..573d5a3e7 100644 --- a/index.html +++ b/index.html @@ -5193,7 +5193,7 @@

        Get Computed Role

        of trying to get a known connected element with url variable element id. -
      4. Let role be the result of computing the WAI-ARIA role. +

      5. Let role be the result of computing the WAI-ARIA role of element.

      6. Return success with data role.