selectUntil method

Future<UITestChainNode<U, Element, T>> selectUntil(
  1. String? selectors, {
  2. int? timeoutMs,
  3. int? intervalMs,
  4. int? minMs,
  5. Iterable<Element> mapper(
    1. List<Element> elems
    )?,
})

Implementation

Future<UITestChainNode<U, Element, T>> selectUntil(
  String? selectors, {
  int? timeoutMs,
  int? intervalMs,
  int? minMs,
  Iterable<Element> Function(List<Element> elems)? mapper,
}) =>
    sleepUntilElement(
      selectors ?? '*',
      timeoutMs: timeoutMs,
      intervalMs: intervalMs,
      minMs: minMs,
      mapper: mapper,
    ).selectExpected(selectors).then((o) {
      var elem = o.element;
      return UITestChainNode<U, Element, T>(
        o.testChainRoot as UITestChainRoot<U>,
        elem,
        this as T,
      );
    });