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