How to check browser open or not

how to check browser open or not…?
If browser closed I want to open it again

Hi @Aditya10989,

there are 2 ways to do this
1.
Simply put Element Exist activity and target into your browser and add if activity to open your browser or continue your browser
2.
check all processes and find if the browser is open and put an if activity to open your browser or continue your browser
Eg : I’m using Microsoft edge
System.Diagnostics.Process.GetProcessesByName(“msedge”)
this will out process array and you can check the length of the array and if it’s 0 means browser not opened

3 Likes

Hi

Use Check app state and target the valid element then
in target not appered sequence add exception and recall the open browser sequence to open the browser

Thank you