Bug 246813 - [WebDriver] Support "Get Computed Role" command
Summary: [WebDriver] Support "Get Computed Role" command
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Lauro Moura
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-10-20 10:06 PDT by Lauro Moura
Modified: 2022-10-21 07:17 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lauro Moura 2022-10-20 10:06:54 PDT
https://www.w3.org/TR/webdriver/#dfn-get-computed-role

Current spec:

12.4.9 Get Computed Role
HTTP Method 	URI Template
GET 	/session/{session id}/element/{element id}/computedrole

The remote end steps are:

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

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

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

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

    Return success with data role. 



Tests:

imported/w3c/webdriver/tests/get_computed_role/
Comment 1 Lauro Moura 2022-10-20 21:36:40 PDT
Pull request: https://github.com/WebKit/WebKit/pull/5621
Comment 2 EWS 2022-10-21 07:16:07 PDT
Committed 255824@main (b450166a796e): <https://commits.webkit.org/255824@main>

Reviewed commits have been landed. Closing PR #5621 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-10-21 07:17:18 PDT
<rdar://problem/101426452>