waitForFunction(functionOrPredicate: "() => window.myAppInitialized === true")
Returns true if the function returns truthy within the timeout.
functionOrPredicate
"() => document.querySelector('#dynamicElement') !== null"
arg
options
Boolean
scalar type represents true
or false
.