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
Add a LocatorAssertion, so the element can be checked against matching a css selector. This would allow more robust assertions.
HTMLElement implements a matches method, this allows checking attributes, classes with one call. Same would be nice in Playwright as well.
🚀 Feature Request
Add a LocatorAssertion, so the element can be checked against matching a css selector. This would allow more robust assertions.
HTMLElement implements a matches method, this allows checking attributes, classes with one call. Same would be nice in Playwright as well.
Example
Motivation
Using
Regex
andToHaveClassAsync
and checking attributes one by one withToHaveAttributeAsync
feels inefficient.The text was updated successfully, but these errors were encountered: