Open christian-bromann opened 2 weeks ago
@sadym-chromium PTAL
e2e repro works: https://github.com/GoogleChromeLabs/chromium-bidi/pull/2543. Looking further
UPD: the issue should be fixed by https://github.com/GoogleChromeLabs/chromium-bidi/pull/2543
The root cause is in the fact Chromium BiDi used document.body
instead of document
, which excluded head
form the selectors.
Thanks for fixing this. @sadym-chromium why would it still return no nodes given the selector *
then? I would assume it would return the first node in the document.body
tree.
Thanks for fixing this. @sadym-chromium why would it still return no nodes given the selector
*
then? I would assume it would return the first node in thedocument.body
tree.
In your example the page is "about:blank", and there are no elements in the "document.body"
This behavior is observed in
stable
andcanary
(130.0.6682.2)Expected Behavior
If I call
browsingContext.locateNodes
with the following parameters:I would expect that it would fetch the `
Actual Behavior
Firefox: ✅ works as expected and returns
Chrome: ❌ fails even though
*
is a valid selector and returnsReproducible Example
See https://github.com/christian-bromann/bidi-locateNodes-error, clone the repo, install dependencies, and call
npm run wdio