Function: assertEle()
function assertEle(el, selector?): WdioElement;
Defined in: packages/core/src/helpers/native/utils.ts:240
Throws when el is false, narrowing it to WdioElement otherwise.
findEle/findEles/findEleAndSel return false on a lookup failure
rather than throwing themselves — callers that don't guard the result
already hit a TypeError one property access later. This makes that
failure explicit and named instead of an incidental crash.
Parameters
el
false | WdioElement
selector?
string