hasDisplayValue function Matchers

Matcher hasDisplayValue(
  1. [dynamic value]

Allows you to check whether the given form element has the specified displayed value (the one the end user will see).

Identical to hasValue in all cases except for <select>s when you want to get the text content of an <option> instead of its value attribute.


Matcher hasDisplayValue([dynamic value]) =>
    _HasValue(value, getOptionValue: (option) => option.text, valueDescription: 'display value');