Filter a List of Elements Using findFirst
To return only the first filtered element, add "findFirst": true
to the filter
.
The generated method returns the first filtered element, even if several elements are filtered by the matcher
. It's important to note that the method returns an element, not an array of elements.
getFirstButtonContains(text: string): Promise<(_BaseUtamElement)>;
The test code gets the first button
element that contains the string Model
.
Click Run Test.