I’m trying to loop a clickable action. When running my program, a dialog box appear in the background with unpredictable frequency. So, I want to add a click option on my desktop. If that dialog box appears in the interval it will get clicked, else it’ll just click on the desktop and the loop doesn’t break. For this action, what click option should be used?
You can use element exists activity for that dialogue box.
Means, if dialogue box exists,
Click on the dialogue box
Else
click option on my desktop
Hi,
You can use Element Exists Activity,
If it is true you can place click activity
Thanks
Use the element exist activity, in properties set WaitForReady as “Complete”
then use if condition to check whether the dialog box exists or not…
Hi
Welcome to uipath community
We can try with Image Exists Activity where we can choose the whole pop up as a image and it will give us a Boolean variable as output named bool_image
—now use a IF condition like this
bool_image = True
If true it will
Go to THEN part where we can use Click Image activity and click on the ok button
Or it will go to ELSE part where we can leave it empty
Cheers @Kanishk_Mair
I’ve incorporated element exists. Now I find that sometimes dialog box ‘A’ appears while sometimes dialog box ‘B’ appears. To click OK for both whenever they appear randomly, should I use parallel workflow?
we can use two element exists activity next to each other
–and get the output like bool_A and bool_B
now use a iIF condition like this
bool_A = True OR bool_B = True
If true it will
Go to THEN part where we can use Click Image activity and click on the ok button
Or it will go to ELSE part where we can leave it empty
Cheers @Kanishk_Mair