sleepUntilElement method
Alias to testUISleepUntilElement.
Implementation
Future<T> sleepUntilElement(String selectors,
{Element? root,
int? timeoutMs,
int? intervalMs,
int? minMs,
Iterable<Element> Function(List<Element> elems)? mapper,
bool Function(List<Element> elems)? validator,
bool expected = false}) =>
testUISleepUntilElement(root ?? element, selectors,
timeoutMs: timeoutMs,
intervalMs: intervalMs,
minMs: minMs,
mapper: mapper,
validator: validator,
expected: expected)
.thenChain((_) => this as T);