When I find elements by alt text:
When I find elements by alt text {string} Copy
When I find elements by alt text {string}
Finds elements (e.g., <img>) that match the alt text.
<img>
alt
When I find elements by alt text "Image Description" Copy
When I find elements by alt text "Image Description"
This precedes steps like "When I click". For example:
When I find elements by alt text "Text" And I get 1st element And I click Copy
When I find elements by alt text "Text" And I get 1st element And I click
Inspired by Testing Library's ByAltText.
When I find elements by alt text:
Finds elements (e.g.,
<img>
) that match thealt
text.