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
By default, the match is case-insensitive, and ignores leading/trailing whitespace. This means text= Login matches <button>loGIN </button>.
However, I noticed in my test this is not the case. I tried to dig a little and found out in the queryselector.spec tests that in order to match case-insensitive, one needs to create a RegExp-like text selector: text=/My Selector/i. This is the commit that illustrates it: aesyondu@a51dc8b
Should the docs be changed, since matching is case-sensitive?
The text was updated successfully, but these errors were encountered:
aesyondu
changed the title
[Question] text= selector does not matching case-insensitive by default
[Question] text= selector does not match case-insensitive by default
Feb 26, 2020
According to selectors.md:
However, I noticed in my test this is not the case. I tried to dig a little and found out in the
queryselector.spec
tests that in order to match case-insensitive, one needs to create a RegExp-like text selector:text=/My Selector/i
. This is the commit that illustrates it: aesyondu@a51dc8bShould the docs be changed, since matching is case-sensitive?
The text was updated successfully, but these errors were encountered: