`elementHandleOrFrameOrPage.$wait(selector, predicate)` - waits until the element matched by the selector matches the predicate.