In my usecase, i need to check if the element exists or not. But the element appreas in 3 mins sometimes and sometimes it takes 10 mins and so on. it depends on the transactions we input. So now i used while loop for this case. If the element exits the loop has to break. How can i modify it here.
I gave delay of 3 min in interval of 5 so that it checks for every 3 mins if the element exits or not. So in the condition i gave the value of delay count to be checked. but how can i exit if the element exists activity is true.
You can try with these activity it will wait until the Image or element appear in the screen
On element appear - if you are able to access that element of the status word like “Pending” or “Responded” you can make use of this activity. You can increase the TimeoutMS value in this activity properties to the minutes you want. But the beauty is the process wont wait till the time you mention in TimeoutMS, rather will continue the process, the moment [robot]
Wait attribute - Again this activity will apply only if you can access the element as mentioned above and is the most reliable one for your case. Because you can wait till the attribute value of “aastate” gets changes to “Responded” from “Pending”. Once this string is met with the attribute, you can proceed further. Again you can mention the TimeoutMS as you want.
On image appear - if you are not able to access the element of those strings, you can use this image activity. Once the image of the string “Responded” is found you can continue further and again you can mention the TimeoutMS as required.