This below function that i have created.
export function waitForDisplayed(selector: string, falseCase: string): void { const ms = 20000; $(selector).w