Working with shadow-dom elements in mink
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.6k
- Forks
- 286
- PR merge metrics
- No merged PRs in 30d
Description
It seems that stock mink functionality does handle shadow-root? I haven't found anyone asking for this use case so far.
I'm wondering if we can do this through on top of the findElement() API or so? The main complication is that we typically build XPaths and call selenium/driver API with it, while assuming we're in the correct context whereas (as I understand), shadow-dom is a different context (the shadow dom root / host).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the findElement() API and the existing XPath-based Selenium/driver calls. Clarify how Mink should represent the shadow DOM root and host context, then define the expected behavior for finding elements inside shadow roots and add coverage for that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100