You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a well defined issue, I figured I'd post it first with my initial findings and not spend extra time creating an isolated test-case - because I'm not sure what the intended support for querySelectorAll is supposed to be in Tallahassee these days.
I just discovered this:
I was working in test with mocha + tallahaassee.
The initial code was browser.document.querySelectorAll(".bylines .watch--follow") - this worked fine and it did find one matching element
I changed it to articleElement.querySelector(".bylines .watch--follow").innerHTML - that also worked fine
When I changed it to articleElement.querySelectorAll(".bylines .watch--follow").length I got the output 0
Screenshot from my vsCode debug console, while debugging a test
First I log .querySelector(".bylines .watch--follow").innerHTML - this finds an element and outputs some html
Then I log .querySelectorAll(".bylines .watch--follow").length this finds zero elements
I'm suspecting that browser.document.querySelectorAll works fine but element.querySelectorAll does not.
Is this perhaps an expected limitation of the tallahaassee support for querySelectorAll ?
The text was updated successfully, but these errors were encountered:
niklasHagner
changed the title
querySelectorAll returns 0 elements incorrectly
element.querySelectorAll returns 0 elements in some cases
Apr 17, 2024
This is not a well defined issue, I figured I'd post it first with my initial findings and not spend extra time creating an isolated test-case - because I'm not sure what the intended support for
querySelectorAll
is supposed to be in Tallahassee these days.I just discovered this:
I was working in test with mocha + tallahaassee.
browser.document.querySelectorAll(".bylines .watch--follow")
- this worked fine and it did find one matching elementarticleElement.querySelector(".bylines .watch--follow").innerHTML
- that also worked finearticleElement.querySelectorAll(".bylines .watch--follow").length
I got the output0
Screenshot from my vsCode debug console, while debugging a test
.querySelector(".bylines .watch--follow").innerHTML
- this finds an element and outputs some html.querySelectorAll(".bylines .watch--follow").length
this finds zero elementsI'm suspecting that
browser.document.querySelectorAll
works fine butelement.querySelectorAll
does not.Is this perhaps an expected limitation of the tallahaassee support for
querySelectorAll
?The text was updated successfully, but these errors were encountered: