Skip to content

Implement accessibility property support via CDP for Chrome - #60778

Merged
zcorpan merged 4 commits into
web-platform-tests:masterfrom
HaTheo:HaTheo/executorchrome
Aug 11, 2026
Merged

Implement accessibility property support via CDP for Chrome#60778
zcorpan merged 4 commits into
web-platform-tests:masterfrom
HaTheo:HaTheo/executorchrome

Conversation

@HaTheo

@HaTheo HaTheo commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Introduces ChromeDriverAccessibilityProtocolPart to provide accessibility tree and computed property support for Chrome under wptrunner. This mirrors the pattern used by existing drivers (such as Marionette) and leverages the Chrome DevTools Protocol (CDP) Accessibility.getPartialAXTree command(https://chromedevtools.github.io/devtools-protocol/tot/Accessibility/#method-getPartialAXTree). It also, as a result, adds support for Edge and other Chromium browsers.

Technical Changes

  • Protocol Implementation: Added ChromeDriverAccessibilityProtocolPart (subclassing WebDriverAccessibilityProtocolPart) to fetch computed labels, roles, and tree structures via CDP commands Accessibility.getPartialAXTree.
  • Changes to aria-utils.js to cast elements to a String to prevent a undefined =! "undefined" bug

Verification

Verified locally on both macOS and Windows by running the wai-aria test suite to ensure properties and tree extractions map correctly across environments without regressions:

./wpt run chrome --include wai-aria --log-wptreport wai-chrome.json

@wpt-pr-bot wpt-pr-bot added infra wptrunner The automated test runner, commonly called through ./wpt run labels Jun 22, 2026
@HaTheo
HaTheo force-pushed the HaTheo/executorchrome branch 2 times, most recently from 2c0f281 to 69825a1 Compare June 28, 2026 02:54
@HaTheo
HaTheo force-pushed the HaTheo/executorchrome branch from 69825a1 to 24408b6 Compare June 28, 2026 03:08

@spectranaut spectranaut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really cool! I've got several questions.

Comment thread tools/wptrunner/wptrunner/executors/executorchrome.py
Comment thread tools/wptrunner/wptrunner/executors/executorchrome.py
Comment thread tools/wptrunner/wptrunner/executors/executorchrome.py Outdated
@HaTheo
HaTheo force-pushed the HaTheo/executorchrome branch 6 times, most recently from b92b710 to 5839380 Compare July 24, 2026 14:44
@HaTheo HaTheo closed this Jul 24, 2026
@HaTheo HaTheo reopened this Jul 24, 2026
@HaTheo
HaTheo requested a review from spectranaut July 24, 2026 18:19

@spectranaut spectranaut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you again Theo!!!

I have two requests for changes, then I think this can land as is, and will really help with the interop initiative.

Comment thread tools/wptrunner/wptrunner/executors/executorchrome.py Outdated
Comment thread tools/wptrunner/wptrunner/executors/executorchrome.py Outdated
Comment thread tools/wptrunner/wptrunner/executors/executorchrome.py Outdated
Comment thread tools/wptrunner/wptrunner/executors/executorchrome.py Outdated
Comment thread tools/wptrunner/wptrunner/executors/executorchrome.py
Comment thread tools/wptrunner/wptrunner/executors/executorchrome.py Outdated
@HaTheo
HaTheo force-pushed the HaTheo/executorchrome branch from 12ceeae to 3bcc5f7 Compare August 5, 2026 21:30
@spectranaut

Copy link
Copy Markdown
Contributor

@HaTheo this looks good but looks like a legit error in the CI, can you take a look?

@spectranaut spectranaut changed the title Implement support via CDP for Chrome Implement accessibility property support via CDP for Chrome Aug 7, 2026
@HaTheo
HaTheo force-pushed the HaTheo/executorchrome branch from 3bcc5f7 to dec4481 Compare August 7, 2026 20:35
@HaTheo

HaTheo commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

@spectranaut, yes I had forgotten to change the return type when moving from a setter to a getter.

@spectranaut spectranaut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoo! Let's land it!

Just one unrelated mac-CI error!

@zcorpan
zcorpan merged commit 43f8a30 into web-platform-tests:master Aug 11, 2026
54 of 55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra wai-aria wg-wai_pf wptrunner The automated test runner, commonly called through ./wpt run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants