Skip to content

Add support for get_computed_label and get _computed_role#1701

Open
pgorszkowski-igalia wants to merge 3 commits into
wpe-2.38from
pgorszkowski/2.38/add_support_for_get_computed_label_and_get_computed_role
Open

Add support for get_computed_label and get _computed_role#1701
pgorszkowski-igalia wants to merge 3 commits into
wpe-2.38from
pgorszkowski/2.38/add_support_for_get_computed_label_and_get_computed_role

Conversation

@pgorszkowski-igalia

@pgorszkowski-igalia pgorszkowski-igalia commented Jul 16, 2026

Copy link
Copy Markdown

patrickangle and others added 3 commits July 16, 2026 10:36
…ommands

https://bugs.webkit.org/show_bug.cgi?id=212549
rdar://63774327

Reviewed by Devin Rousso.

Add support for getting the accessibility role and label for elements.

This change progresses `get_computed_role` and `get_computed_label` subtests when combined with a safaridriver change to
enable these commands and test fixes being reviewed in web-platform-tests/wpt#35581.

* Source/WebKit/UIProcess/Automation/Automation.json:
* Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:
(WebKit::WebAutomationSession::getComputedRole):
(WebKit::WebAutomationSession::getComputedLabel):
* Source/WebKit/UIProcess/Automation/WebAutomationSession.h:
* Source/WebKit/WebProcess/Automation/WebAutomationSessionProxy.cpp:
(WebKit::WebAutomationSessionProxy::getAccessibilityObjectForNode):
(WebKit::WebAutomationSessionProxy::getComputedRole):
(WebKit::WebAutomationSessionProxy::getComputedLabel):
* Source/WebKit/WebProcess/Automation/WebAutomationSessionProxy.h:
* Source/WebKit/WebProcess/Automation/WebAutomationSessionProxy.messages.in:

Canonical link: https://commits.webkit.org/253732@main
https://bugs.webkit.org/show_bug.cgi?id=246813

Reviewed by Carlos Garcia Campos.

Some style check errors expected due https://webkit.org/b/124730
false positives in Function<> usage.

Remaining failures were fixed in the upstream test suite itself
and will be imported in https://webkit.org/b/246845.

* Source/WebDriver/Session.cpp:
(WebDriver::Session::isElementEnabled):
(WebDriver::Session::getComputedRole):
* Source/WebDriver/Session.h:
* Source/WebDriver/WebDriverService.cpp:
(WebDriver::WebDriverService::getComputedRole):
* Source/WebDriver/WebDriverService.h:
* WebDriverTests/TestExpectations.json:

Canonical link: https://commits.webkit.org/255824@main
https://bugs.webkit.org/show_bug.cgi?id=246814

Reviewed by Carlos Garcia Campos.

Tests still marked as xfailure as they need a fix yet to be imported into
local copy. Manually applying the fix shows that they should be passing,
though.

* Source/WebDriver/Session.cpp:
(WebDriver::Session::getComputedRole): Refactor to use getComputedRole
command.
(WebDriver::Session::getComputedLabel): Added
* Source/WebDriver/Session.h:
* Source/WebDriver/WebDriverService.cpp:
(WebDriver::WebDriverService::getComputedLabel): Added
* Source/WebDriver/WebDriverService.h:
* WebDriverTests/TestExpectations.json: Update referenced bug

Canonical link: https://commits.webkit.org/256146@main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants