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
Just found that Navigator.filter(selector) is case sensitive for tag names.
Example:
Let's say I have a button on the page, like this
<button>hello</button>
It seems the find method is not case sensitive, as both of these finds the button
navigator.find("BUTTON")
navigator.find("button")
If i use then add the filter method something stange happens:
def buttons = navigator.find("BUTTON")
buttons.filter("BUTTON") // This will filter away the button, even though it was just found using the exact same selector
buttons.filter("button") // But if I use a lowercase selector the button is not filtered away
I would expect that if I use the exact same selector in filter as used in find, then I wouldn't have any effect on the result.
But I seems the case matters for filter and doesn't matter for find.
The text was updated successfully, but these errors were encountered:
Just found that Navigator.filter(selector) is case sensitive for tag names.
Example:
Let's say I have a button on the page, like this
It seems the find method is not case sensitive, as both of these finds the button
If i use then add the filter method something stange happens:
I would expect that if I use the exact same selector in filter as used in find, then I wouldn't have any effect on the result.
But I seems the case matters for filter and doesn't matter for find.
The text was updated successfully, but these errors were encountered: