Skip to content

Access nested shadow DOM #567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 29, 2025
Merged

Access nested shadow DOM #567

merged 5 commits into from
May 29, 2025

Conversation

mdshakib007
Copy link
Collaborator

PR Type

Feature

PR Checklist

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made.
  • Version number has been updated.
  • Required modules have been added to respective "requirements*.txt" files.
  • Relevant Test Cases added to this description (below).
  • (Team) Label with affected action categories and semver status.

Overview

This PR improves the shadow_root_elements function with the following enhancements:

  • Nested Shadow DOM Traversal: Enables access to multiple levels of shadow roots, allowing deeper element queries.
  • Parent-Based Selection Support: Adds the ability to define and use parent elements for more accurate targeting within shadow roots.
  • Validation Improvements: Includes robust parameter format checks and index duplication detection.
  • Logging Enhancements: Adds detailed logs for traceability of queries and shadow root access.
  • Regex For SR: Adds regex for the SR element passing.

@Muntasib-creator Muntasib-creator merged commit ce7d274 into dev May 29, 2025
8 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