Click activity issue while clicking on the button

I need to click on close button,bot tried to close but it did not close tried manual only after multiple click it got closed how can I write retry code

Hey @sruthesanju

Follow below mentioned screenshot:

Note: You can change properties according to your requirement

Attaching .xaml for your reference:
Retry_Sequence.xaml (3.8 KB)

Regards,
Ajay Mishra

Hi @sruthesanju

→ Use the Retry scope activity, Inside the Action block insert the Click activity and indicate on the Close button.
→ Inside Condition block insert the Element exist activity and indicate the window which appears after closing the present window.
→ Open the properties of Retry scope activity and give the retry count as your requirement in the Number of Retries option.

The Retry scope will retry until the new window appear on the screen and it matches the Number of Retry count.

Hope it helps!!

It is not working it is proceeding further without clicking on close button

what you have indicated for the Element exist activity, You have to indicate the element which appears after click on the close button… @sruthesanju

Hope you understand!!

Yes I have indicated the element after closing

Try to debug the code then see how the bot going, it was retrying the click activity or it was going sequence… @sruthesanju

Better to give the 10 or more in Number of Retries option.

Hope you understand!!

Hi @sruthesanju ,

Can you share the selector for the close button.?

Thanks,
Gautham.

if you using click activity-
then set following property(if its taking time set time out time according to that)

then set next page target(Target appear after click successful)
image

it will keep trying until selector found.(till time out)

if still not working then try other input mode.

Why are you trying to click the close button instead of using the close feature of the Use Application/Browser activity?