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
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:
constfocusedButtonPromise=page.waitForSelector('button:focus');awaitpage.focus('button');// times out, because focus doesnt trigger a DOM mutation.constfocusedButton=awaitfocusedButtonPromise;
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 ":"?