I would like to know if there is a way to specify the text selection even more than text="text"? Specification of playwright is no enough, and moreover I cannot use other selectors due to the structure of tests (there are more than several thousands of assertions, so I make custom commands)
The problem is the following: on the web page that I am testing there are several pieces of text locators, all of which contain the same text fragment. For example when I use "'The Exact text'" I get selectors with text 'The Exact text' and 'Some Other TextThe Exact text'.