-
Notifications
You must be signed in to change notification settings - Fork 3k
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
test_driver actions don't work on targets in shadow DOM #41257
Comments
Can you point to where it's trying to create a selector from |
You can see the test failing here in Chrome for this exact reason: https://wpt.fyi/results/html/semantics/popovers/popover-light-dismiss-flat-tree.html?diff&filter=ADC&run_id=5102411146854400&run_id=5205993141567488
|
Ahh, you're right. I think maybe right here: That seems quite baked into the WPT runner platform, which is unfortunate. No quick fix that I can see. |
I feel like in the past there was talk of adding shadow-piercing selectors specifically for use in automation tooling, not exposed to the web at large. I don't know where those discussions happened or where they ended up though... I'll blindly tag @mathiasbynens as my general "person who knows these sorts of things". |
We recently revisited this in the context of WebDriver BiDi: w3c/webdriver-bidi#342 The outcome was that at this point, this functionality should be implemented by clients rather than built into the spec. |
Right, I think the WebDriver group in particular don't want to try to specify custom selectors. If the CSSWG wanted to specify it they would probably be used. In the meantime this is fixable with some effort; if you can get a reference to the element with script then at least in theory we can split the element selection into multiple parts, one for each shadow tree. Then the WebDriver side should be able to do the shadow tree traversal. Alternatively one could make it work for the same-origin case by not depending on We're probably also pretty close to the point where we could implement a WebDriver-BiDi backend for wptrunner / testdriver, which would solve this problem by allowing us to avoid the pile of hacks required to handle the fact that WebDriver requires synchronous, blocking communication with a single Window at a time. |
test_driver.click() doesn't work on elements in shadowdom, which I tried to fix here but it got complicated and I gave up for now: #37483 |
I have a workaround for this for the popover tests in https://phabricator.services.mozilla.com/D203152. |
This works around #41257 and enables the tests. Differential Revision: https://phabricator.services.mozilla.com/D203152 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1878104 gecko-commit: 343b540522ec81232a7eaa98161c1065d3391796 gecko-reviewers: dholbert
…DOM. r=dholbert This works around web-platform-tests/wpt#41257 and enables the tests. Differential Revision: https://phabricator.services.mozilla.com/D203152
This works around #41257 and enables the tests. Differential Revision: https://phabricator.services.mozilla.com/D203152 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1878104 gecko-commit: 343b540522ec81232a7eaa98161c1065d3391796 gecko-reviewers: dholbert
…DOM. r=dholbert This works around web-platform-tests/wpt#41257 and enables the tests. Differential Revision: https://phabricator.services.mozilla.com/D203152
After merging #41251 (which works fine on webkit's test runner infrastructure), I realized test_driver does not actually support targets in shadow DOM, because it tries to create a selector, which doesn't really work in a shadow dom context.
cc @domenic @mfreed7 @josepharhar @rniwa @gsnedders @jgraham
The text was updated successfully, but these errors were encountered: