Bug 246813

Summary: [WebDriver] Support "Get Computed Role" command
Product: WebKit Reporter: Lauro Moura <lmoura>
Component: WebDriverAssignee: Lauro Moura <lmoura>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=246845

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>