In my app the login process has to do quite a bit of to and fro before the app is ready. I know when it is ready because I have a .accessibilityIdentifier
attached to the text message that apears.
How can I wait on that being available?
I have tried:
while(true){
console.log("Checking if login process is finished ")
if(await driver.elementByAccessibilityId("LoggedInTextMessage")){
return
}
await sleep(100)
}
Which even if it worked would be a bit tasteless. But it does not work