How to properly close the chrome Browser making sure that it is not even running the background
Posted: Thu Apr 18, 2019 2:53 pm
Hi,
I am struggling to close the browser in a decent way so that it will not run continue running in the background
I tried :
1. Host.local.KillBrowser
2. foreach (WebDocument dom in Host.Local.Find<WebDocument>("/dom[@browsername='Chrome']"))
dom.close();
3. Host.local.CLoseApplication("ProcessId") >>>> Not sure how to get the processId , moreover if we get also do not know how reliable it will be, but please let me know how to get the processId
4. I turned off the google Advanced settings of "Continue running apps when google chrome is close"
Tried with all the above ways to make sure the chrome is closed properly without running in the background but no luck
Please help me with an approach wherein chrome gets closed successfully even from the background also (Task Manager) so that no restore pop up message will appear the second when we launch chrome
Please refer the attached screenshot
Regards
I am struggling to close the browser in a decent way so that it will not run continue running in the background
I tried :
1. Host.local.KillBrowser
2. foreach (WebDocument dom in Host.Local.Find<WebDocument>("/dom[@browsername='Chrome']"))
dom.close();
3. Host.local.CLoseApplication("ProcessId") >>>> Not sure how to get the processId , moreover if we get also do not know how reliable it will be, but please let me know how to get the processId
4. I turned off the google Advanced settings of "Continue running apps when google chrome is close"
Tried with all the above ways to make sure the chrome is closed properly without running in the background but no luck
Please help me with an approach wherein chrome gets closed successfully even from the background also (Task Manager) so that no restore pop up message will appear the second when we launch chrome
Please refer the attached screenshot
Regards