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
Describe the bug
With the getObject and getAllObject methods in querySelector.js, > symbol is removed in splitting, but never processed back and won't take effect. This causes all related Shadow.findElement(s) behaviors to be malfunctioning. See the following example:
I don't understand why > is used to process multi-level DOM.
For functional, this is not needed at all, since without splitting, the script still works fine for piercing through multi-level shadow roots.
For performance, if we have to use some symbol to reduce the max size of possible elements cached in the allElements array, & would be a much better choice considering only one character is allowed in splitByCharacterUnlessQuoted.
The text was updated successfully, but these errors were encountered:
Describe the bug
With the
getObject
andgetAllObject
methods inquerySelector.js
,>
symbol is removed in splitting, but never processed back and won't take effect. This causes all relatedShadow.findElement(s)
behaviors to be malfunctioning. See the following example:To Reproduce
Steps to reproduce the behavior:
getAllObject("div#a > div")
in the console.[<div id="b">, <div id="c">, <div id="d">]
, but#c
is not a direct child of#a
Expected behavior
Expected result should be
[<div id="b">, <div id="d">]
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
shadow-automation-selenium/resources/querySelector.js
Line 245 in 3376e82
I don't understand why
>
is used to process multi-level DOM.For functional, this is not needed at all, since without splitting, the script still works fine for piercing through multi-level shadow roots.
For performance, if we have to use some symbol to reduce the max size of possible elements cached in the
allElements
array,&
would be a much better choice considering only one character is allowed insplitByCharacterUnlessQuoted
.The text was updated successfully, but these errors were encountered: