How to restart application

Hi I am inserting data from excel to web.this process take 6-7 hours some time I got the message as mention in screen shot.So when I will got this message then inside catch block I will use element appear activity then click ok button this will move to login page then I want to restart my application.How can I do this can any one help me


@Lahiru.Fernando @lakshman @Palaniyappan

1 Like

yah as you said
keep the whole process in a TRY block of TRY CATCH ACTIVITY
where if the process if fails due to this popup
then it will go to CATCH BLOCK where we can use ELEMENT EXISTS or IMAGE EXISTS activity and get the output with variable of type boolean named bool_exists
-now use a IF CONDITION like this
bool_exists = True
if true it will go to THEN part where use a click activity and clickon that ok button and followed by that we can place the sequence of activities we need

Cheers @Aditya10989

thanks for reply then we need to put all the code inside catch block because this application will start from again…?

1 Like

yah

we can use PARALLEL activity where we can include ELEMENT EXISTS ACTIVITY and click activity on that ok button
but as you said we need to restart the process this TRY CATCH method would be better
@Aditya10989

ok mean to say I need to paste all process inside catch block again

1 Like

yes if we want to proceed again from the first place the sequence in CATCH block
once after using element exists and click activity
@Aditya10989

1 Like

kindly try this and let know for any queries or clarification
@Aditya10989

1 Like