I am trying to figure out how can my RPA program select “Yes” button from a popup box.
This pop up box will appear only after a delay ( delay is not stable) after the previous activity . (Activity A).
After this pop up appear, program should select Yes and continue.
I have put element exist activity and put default value as False.
I have then used IF activity and if element exist activity returned “True” , program should click on the Yes button inside the pop up box.
I have put a log message box to ensure the program is running. But, every time after activity A, log message shows false value even though the popup box appeared.
I think this is due to unstable selector of the popup box
Could you please explore more the popup box selector by opening the Selector in UiExplorer window and try to add more properties to that like “aaname or id”.
If Possible, please share the Selector for the element you are looking.
I want to click the “Yes” button in a popup box after it’s appeared. Sometimes the popup will appear, and sometimes not. If it didn’t appear, a log message Info would be shown as " Not Adjusted."
Is it okay if I use element exists activity?
As, you mentioned that the popup will appear after a delay that is not fixed, If you use Element Exist then It will move to the condition after default wait time like 30 sec and the condition will be false if the popup didn’t appear within 30 sec
So you need to find an element which is more stable like if the popup box has appeared then that element should not be enabled / visible
Also, you need to check that the selector is dynamic and correct
@Srini84 , in that case, on element appear is a good choice? But if I use on element appear , I am not able to use IF statement as it doesn’t support boolean variable.
Also, if I use a delay of 60sec before element exist activity and within this 60sec if the pop box appeared, will the program click Yes as soon as the popup box appear?