I have a bot that emulates a process in Chrome. Sometimes the bot fails because of the presence of Chrome windows from previously failed executions where the same was not closed.
Killing the process result in the appearance of a pop-up window in Chrome saying something like ‘Do you want to restore the previous sessions?’ which is difficult to handle.
How this can be sorted where the bot would check if there is a Chrome browser window already opened and then gracefully close it before starting the actual execution?
Hi @humanity2003 ,
1)Before starting your process execution just add the kill process/close application activity and give chrome name there, hence it will close chrome before your execution starts if chrome was open.
2)Now coming to the pop up just after kill process add element exists activity and indicate that pop up.
3)Then inside an if condition if pop up exists click on “no”, if pop up does not exist go with normal flow of execution.