Bug 246814
Summary: | [WebDriver] Support "Get Computed Label" command | ||
---|---|---|---|
Product: | WebKit | Reporter: | Lauro Moura <lmoura> |
Component: | WebDriver | Assignee: | 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 |
Lauro Moura
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/
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Lauro Moura
Pull request: https://github.com/WebKit/WebKit/pull/5794
Radar WebKit Bug Importer
<rdar://problem/101639200>
EWS
Committed 256146@main (65f0b17d5ddf): <https://commits.webkit.org/256146@main>
Reviewed commits have been landed. Closing PR #5794 and removing active labels.