When I find image by alt text:
When I find image by alt text {string} Copy
When I find image by alt text {string}
Finds the first <img> that matches the alt text.
<img>
alt
When I find image by alt text "Text" Copy
When I find image by alt text "Text"
This precedes steps like "When I click". For example:
When I find image by alt text "Text" And I click Copy
When I find image by alt text "Text" And I click
Inspired by Testing Library's ByAltText.
When I find image by alt text:
Finds the first
<img>
that matches thealt
text.