expectElement method
T
expectElement(})
Implementation
T expectElement(String selectors,
{Object? root,
String? reason,
List<Element> Function(List<Element> elems)? mapper,
bool Function(List<Element> elems)? validator}) {
root ??= element;
expect(_existsElement(root, selectors, mapper, validator), isTrue,
reason: reason ?? "Can't find element: `$selectors` >> root: $root");
return this as T;
}