3 ms·
Yeah, this is a cool idea. Came across a version of this the other day, though would love to see something open source [0]. The less "smart" way of solving thi
by rgbrgb 6y ago
Yeah, this is a cool idea. Came across a version of this the other day, though would love to see something open source [0].
The less "smart" way of solving this is to look at the contents of the element like Cypress' `contains` [1].
[0]: https://walrus.ai/ https://walrus.ai/
[1]: https://docs.cypress.io/api/commands/contains.html#Syntax https://docs.cypress.io/api/commands/contains.html#Syntax