I am running a bot involving REFramework, windows 10 and EDGE. On the KillingAllProcesses.xaml in REFramework it uses the ‘Kill Process’ activity and with the property ProcessName = ‘MicrosoftEdge’ it kills all instances of EDGE.
The problem is that EDGE keeps running in the background and the next time that an instance of EDGE is instantiated, it opens all the tabs that were previously opened.
I have googled for a while and there are a couple of windows policies ‘Allow Microsoft Edge to pre-launch at windows startup…’ and ‘Allow Microsoft Edge to start and load and New Tab Page…’) that can be enabled in the Local Group Policy Editor to prevent old tabs to reopen after killing the EDGE process or these policies can be directly modified in the windows registry but none of them seems to work.
Right now I am implementing a workaround that consist in after killing the process I reopen EDGE and then my bot closes each tab, one after one but I wonder if there is a better and more optimal way of using the Kill Process activity with EDGE.