Hey @jack.chan ,
You can create an Anchor based selector and put those steps in Retry scope and given some time interval and the Retry number in the retry scope and in the condition of the retry scope you can put element exist to check for that element.
This way you can automate this task.
Thanks,
Sanjit