Optionalselector: string | nullThe CSS selector to use
Optionalargs: { timeout?: number; visible?: boolean } | nullConfiguration args
Optionallambda: () => Element | nullAn optional function that returns the
element. Used if the selector is not provided.
A promise that resolves to the found element.
Wait for an element to appear in the DOM, then resolve the promise. Either a query selector or lambda function must be provided.