You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 326b27c
Browse filesBrowse the repository at this point in the historyBrowse files
authored
feat(helpers): acting CDP helpers, HelperCapabilities type, ARIA snapshots for CDP and Puppeteer (#5749)
* feat(helpers): acting CDP helpers, HelperCapabilities, ARIA snapshots for CDP and Puppeteer
- Add Obscura and Lightpanda to Container.STANDARD_ACTING_HELPERS so aiTrace,
pageInfo, Decision, screenshot, pause and heal find them
- Fix aiTrace crashing container creation via missing output.warn
- Add CodeceptJS.HelperCapabilities type (screenshot, video, trace, aria +
CDP-detected layout/xpath/innerText); Playwright, Puppeteer, WebDriver and
CDPBrowser declare this.capabilities
- Add grabAriaSnapshot to CDPBrowser (Accessibility.getFullAXTree) and
Puppeteer (page.accessibility.snapshot), rendered in Playwright's ARIA
snapshot format by lib/aria.js
- Skip screenshots / ARIA in screenshot plugin, aiTrace and Decision when the
helper declares the capability false
- CDPBrowser screenshots resolve paths via screenshotOutputFolder so absolute
paths from aiTrace work
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(webapi): cover grabAriaSnapshot across helpers; honor elementIndex in CDP snapshot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* refactor(aria): render accessibility trees as-is instead of mimicking Playwright
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: DavertMik <davert@testomat.io>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* @prop {object} [headers={}] - headers sent when connecting to the endpoint, e.g. for authenticated remote browsers.
39
40
* @prop {string} [input=auto] - how actions are dispatched: `cdp` (real mouse and keyboard events) or `synthetic` (DOM events). `auto` picks `cdp` when the browser renders layout.
40
41
* @prop {string|boolean} [xpathPolyfill=auto] - inject an XPath polyfill for browsers with incomplete XPath support. `auto` detects when it is needed.
41
-
* @prop {object} [capabilities={}] - browser capabilities (`layout`, `xpath`, `screenshot`, `innerText`) to use instead of detecting them at runtime.
42
+
* @prop {object} [capabilities={}] - browser capabilities (`layout`, `xpath`, `screenshot`, `video`, `innerText`, `aria`) to use instead of detecting them at runtime.
42
43
* @prop {number} [waitForTimeout=5] - default timeout for wait* actions, in seconds.
43
44
* @prop {number} [waitForAction] - fixed delay after each action, in milliseconds. When unset, actions wait only for the navigation they trigger.
44
45
* @prop {number} [pollInterval=25] - interval between checks while waiting, in milliseconds.
@@ -137,7 +138,8 @@ class CDPBrowser extends Helper {
0 commit comments