I'm struggling with a thing that may be obvious for some of you. Let's imagine I have an array of HTML elements like:
<tr> id=item-1 ... </tr>
<tr> id=item-2 ... </tr>
<tr> id=item-3 ... </tr> etc.
What I want to do is to write a TestCafe selector that will find the entire table of elements by id "item-". Can anyone answer how to do this?
A simple
NAME_OF_SELECTOR = Selector('tr').withAttribute('id', 'item-');
doesn't work that way; it needs the entire name id.