hasAttr function

Matcher hasAttr(
  1. String attributeName,
  2. dynamic value
)

Returns a matcher that matches an element that has attributeName set to value.

Implementation

Matcher hasAttr(String attributeName, value) => _ElementAttributeMatcher(attributeName, wrapMatcher(value));