selectExpected<E extends UIElement> method
Implementation
E selectExpected<E extends UIElement>(String? selectors) {
var self = this;
var e = selectors != null && selectors.isNotEmpty
? self?.querySelector<E>(selectors)
: null;
if (e == null) {
throw TestFailure("Can't find element: `$selectors`");
}
return e;
}