Bug 246814

Summary: [WebDriver] Support "Get Computed Label" 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:08:16 PDT
https://www.w3.org/TR/webdriver/#get-computed-label

Current spec:

12.4.10 Get Computed Label
HTTP Method 	URI Template
GET 	/session/{session id}/element/{element id}/computedlabel

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 label be the result of a Accessible Name and Description Computation for the Accessible Name of the element.

    Return success with data label. 


Tests:

imported/w3c/webdriver/tests/get_computed_label/
Comment 1 Lauro Moura 2022-10-25 21:01:25 PDT
Pull request: https://github.com/WebKit/WebKit/pull/5794
Comment 2 Radar WebKit Bug Importer 2022-10-27 10:09:18 PDT
<rdar://problem/101639200>
Comment 3 EWS 2022-10-30 20:45:57 PDT
Committed 256146@main (65f0b17d5ddf): <https://commits.webkit.org/256146@main>

Reviewed commits have been landed. Closing PR #5794 and removing active labels.