yashaka / selene

User-oriented Web UI browser tests in Python
https://yashaka.github.io/selene/
MIT License
676 stars 145 forks source link

regex matched version of have.text & co #529

Closed yashaka closed 1 month ago

yashaka commented 1 month ago

probably named as have.text_like with similar condition.where(**overrides) behavior like in #528. See also #401

yashaka commented 1 month ago

_like suffix is bad idea because already used for "list globbing" in conditions like have.texts_like & co (see #528)

then _matching would be a good choice!

yashaka commented 1 month ago

no need to add have.exact_text_matching(regex_pattern), have.text_matching(regex_pattern) is completely enough.