Forum Discussion
ebarbera
3 years agoStaff
hi Mike_Martin -
I would suggest using a while loop here - while (//div [@col-id='XePatientVisit.WorkID.XeWorkflowInstanceState.0.WorkState' ])[2] does not exist or isn't visible - scroll a certain amount.
https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/statements/while-loop.html
Let me know if you have questions.
Thanks,
Emma