-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't waitForSelector if the selector contains :focus or something else exotic #23
Comments
We are not going to support pseudo states in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When we do
waitForSelector
, we poll on DOM mutations. But some things that can change the selectors an element matches against aren't DOM mutations. For example:Would also effect
:focus-within
:active
:hover
:visited
(currently broken for other reasons):empty
:valid
Maybe others.
I don't really want to wait on focus changes or value changes for every waitForSelector. Maybe a quick hack that also waits on rafs when the selector contains "
:
"?The text was updated successfully, but these errors were encountered: