Optional
options: DataTableWhen I find element by test ID "testID"
With options:
When I find element by test ID "testID"
| log | true |
| timeout | 4000 |
| withinSubject | null |
| includeShadowDom | false |
This precedes steps like "When I click". For example:
When I find element by test ID "testID"
And I click
Inspired by Testing Library's ByTestId.
When I find element by test ID:
Finds the first element that has the matching
data-testid
ordata-test-id
attribute:Use this only if the other queries don't work.
data-testid
ordata-test-id
don't resemble how your software is used and should be avoided if possible.