When I get element by display value:
When I get element by display value {string} Copy
When I get element by display value {string}
Returns the input, textarea, or select element that has the matching display value.
input
textarea
select
This query will throw an error if no element is found and will not wait and retry.
When I get element by display value "Hello World" Copy
When I get element by display value "Hello World"
This precedes steps like "When I set value". For example:
When I get element by display value "Display Value" And I set value "Value" Copy
When I get element by display value "Display Value" And I set value "Value"
Inspired by Testing Library's ByDisplayValue.
When I get element by display value:
Returns the
input
,textarea
, orselect
element that has the matching display value.This query will throw an error if no element is found and will not wait and retry.