selectWhereUntil method

Future<UITestChainNode<U, List<Element>, T>> selectWhereUntil(
  1. String? selectors,
  2. bool test(
    1. Element element
    ), {
  3. int? timeoutMs,
  4. int? intervalMs,
  5. int? minMs,
  6. Iterable<UIElement> mapper(
    1. List<Element> elems
    )?,
  7. bool expected = false,
})

Implementation

Future<UITestChainNode<U, List<Element>, T>> selectWhereUntil(
  String? selectors,
  bool Function(Element element) test, {
  int? timeoutMs,
  int? intervalMs,
  int? minMs,
  Iterable<Element> Function(List<Element> elems)? mapper,
  bool expected = false,
}) => thenChain(
  // Cast the resolved node, not the `Future` (that always threw):
  (o) => o
      .selectWhereUntil(
        selectors,
        test,
        timeoutMs: timeoutMs,
        intervalMs: intervalMs,
        minMs: minMs,
        mapper: mapper,
        expected: expected,
      )
      .then((o) => o as UITestChainNode<U, List<Element>, T>),
);