expectElement method

Future<T> expectElement(
  1. String selectors, {
  2. Object? root,
  3. String? reason,
  4. List<Element> mapper(
    1. List<Element> elems
    )?,
  5. bool validator(
    1. List<Element> elems
    )?,
})

Implementation

Future<T> expectElement(String selectors,
        {Object? root,
        String? reason,
        List<Element> Function(List<Element> elems)? mapper,
        bool Function(List<Element> elems)? validator}) =>
    thenChain((o) => o.expectElement(selectors,
        root: root, reason: reason, mapper: mapper, validator: validator));