We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 705202e commit ac9f5b9Copy full SHA for ac9f5b9
1 file changed
lib/helper/Playwright.js
@@ -4097,9 +4097,10 @@ function buildLocatorString(locator) {
4097
return `xpath=${locator.value}`
4098
}
4099
if (locator.isShadow()) {
4100
- // Convert shadow locator to CSS with >>> deep descendant combinator
4101
- // { shadow: ['my-app', 'recipe-hello', 'button'] } => 'my-app >>> recipe-hello >>> button'
4102
- return locator.value.join(' >>> ')
+ // Convert shadow locator to CSS with >> chaining operator
+ // Playwright pierces shadow DOM by default, >> chains selectors
+ // { shadow: ['my-app', 'my-form', 'button'] } => 'my-app >> my-form >> button'
4103
+ return locator.value.join(' >> ')
4104
4105
return locator.simplify()
4106
0 commit comments