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
Hello folks and thank you for the great work you're doing with the tool! That's amazing 😊
I'm opening this issue to request for a .toHaveFocus() function that will allow to verify what is the actually focused element. This may become very helpful when testing for accessibility.
Actually, to determine if an element has focused on it, I have two options that are quite verbose:
constaxTreeSnapshot=awaitpage.accessibility.snapshot({ root });// does not look very consistent on firefox from my experimentation, but I may be wrongaxTreeSnapshot.focused
Hello folks and thank you for the great work you're doing with the tool! That's amazing 😊
I'm opening this issue to request for a
.toHaveFocus()
function that will allow to verify what is the actually focused element. This may become very helpful when testing for accessibility.Actually, to determine if an element has focused on it, I have two options that are quite verbose:
or as described in microsoft/playwright#2159 (comment) with the following:
What do you think?
The text was updated successfully, but these errors were encountered: