HyperExecute integration — Selenium accessibility automation
This page is the HyperExecute integration guide for Accessibility Automation when your tests use Selenium. It assumes you already run Selenium jobs on HyperExecute (YAML + CLI) and need the same accessibility session capabilities and reporting behavior on the grid—not a generic Selenium-only tutorial. For framework setup on local or other grids, start with Accessibility Automation and the Selenium setup doc.
Scope: Selenium test code + hyperexecute.yaml orchestration on HyperExecute. If the Accessibility tab never appears on sessions, confirm accessibility: true (and related caps) in the process HyperExecute actually runs, and that Accessibility is enabled for your organization—contact support if needed.
Prerequisites
- A valid HyperExecute YAML file
- HyperExecute CLI installed locally
- Your TestMu AI Username and Access key
- A Selenium project that already runs on HyperExecute
High-level flow (HyperExecute)
- Keep your Selenium suite configured for HyperExecute (YAML, discovery,
testRunnerCommand). - Enable Accessibility capabilities in the same session options you pass to
RemoteWebDriver(or equivalent)—HyperExecute forwards them like any other capability. - Trigger the job with the HyperExecute CLI using your YAML.
- When the build finishes, open the session in the Automation dashboard and use the Accessibility tab for the report.
Onboarding checklist (first HE + Accessibility run)
- Confirm Selenium on HyperExecute already runs a green build without Accessibility (isolate grid/YAML issues first).
- Add the same capability keys you would use locally:
accessibility: true, optionalaccessibility.wcagVersion,accessibility.bestPractice,accessibility.needsReview, and eitherlambda-accessibility-scanhooks in code oraccessibility.autoscan(settings reference). - Propagate credentials in the HyperExecute job the same way as your other HE runs (
LT_USERNAME/LT_ACCESS_KEYin env or secrets). - Run a short suite (one class or smoke tag) so the HE dashboard shows a single session to inspect.
- Open the Automation Dashboard → session → Accessibility tab. If the tab is missing, verify the session capabilities in the build log.
YAML and test code (integration point)
HyperExecute does not replace Selenium capabilities—it orchestrates the same test JAR or Node project. The integration work is making sure the command HyperExecute runs is the profile that sets accessibility caps. Ensure:
- Your test process still loads the code path that sets
accessibilityonRemoteWebDriver/ options. - Discovery in
hyperexecute.yamlpoints at the samemvn/gradle/npmcommand you use locally for Accessibility runs.
Example pattern (illustrative only—adapt to your repo’s actual runson, pre, and testRunnerCommand):
version: 0.1
runson: linux
testSuiteStep: 90
pre:
- npm install # or mvn dependency:go-offline
testRunnerCommand: npm run test:a11y # must invoke tests that set accessibility caps
If your team keeps caps in environment-specific property files, inject those files or env vars in pre or env blocks so CI matches local.
When something fails
| Symptom | What to check |
|---|---|
| HE green but no Accessibility tab | Session never received accessibility: true; confirm the command HyperExecute ran is the Accessibility-enabled profile. |
| Timeouts | Auto-scan on heavy SPAs increases duration; switch to hook-based scans for critical paths only. |
