Skip to content

feat: add AI self-healing selector support using AWS Bedrock#355

Merged
sr4850 merged 3 commits into
mainfrom
feat/self-healing-selectors
Apr 15, 2026
Merged

feat: add AI self-healing selector support using AWS Bedrock#355
sr4850 merged 3 commits into
mainfrom
feat/self-healing-selectors

Conversation

@sr4850

@sr4850 sr4850 commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Adds runtime self-healing for broken Selenium selectors via AWS Bedrock
Agent (Amazon Nova Lite). When a selector fails, the system sends the
broken selector and page DOM to the AI agent which suggests a corrected
selector with confidence scoring.

  • BedrockSelectorService: async streaming client for Bedrock Agent
  • SelfHealingElementLocator: heal logic with auto-detect selector format
  • SelfHealingConfig: feature flags, Secrets Manager for agent credentials
  • Post-heal visibility fallback for hidden elements
  • Unit tests (24 passing)

Related issue: JIRA_TICKET_NUMBER

Before submitting (or marking as "ready for review")

  • Does the pull request title follow the conventional commit specification?
  • Have you performed a self-review of the code
  • Have you have added tests that prove the fix or feature is effective and working
  • Did you make sure to update any documentation relating to this change?

sr4850 and others added 3 commits April 13, 2026 13:28
Adds runtime self-healing for broken Selenium selectors via AWS Bedrock
Agent (Amazon Nova Lite). When a selector fails, the system sends the
broken selector and page DOM to the AI agent which suggests a corrected
selector with confidence scoring.

- BedrockSelectorService: async streaming client for Bedrock Agent
- SelfHealingElementLocator: heal logic with auto-detect selector format
- SelfHealingConfig: feature flags, Secrets Manager for agent credentials
- Post-heal visibility fallback for hidden elements
- Unit tests (24 passing)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adds runtime self-healing for broken Selenium selectors via AWS Bedrock
Agent (Amazon Nova Lite). When a selector fails, the system sends the
broken selector and page DOM to the AI agent which suggests a corrected
selector with confidence scoring.

- BedrockSelectorService: async streaming client for Bedrock Agent
- SelfHealingElementLocator: heal logic with auto-detect selector format
- SelfHealingConfig: uses SecretsManager for agent credentials
- Post-heal visibility fallback for hidden elements
- Overloaded SecretsManager.getSecretValue for custom secret names
- Unit tests (24 passing)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Change default secret from vol-functional-tests/self-healing to
  vol-functional-tests/bedrock
- Update keys to selfHeal_agentId and selfHealth_agentAliasId
- Update tests to match new system property keys

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sr4850 sr4850 merged commit 5a224c5 into main Apr 15, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants