Hi all ! I have a litthe problem. Is it possible to take control of chrome.exe process ? To load tabs or kill the process.

This is the trick I do , but it's not cross plateform, it works only if chrome was not previously loaded. and it's not clean :

#OPEN CHROME

proc1 = subprocess.Popen("%userprofile%\AppData\Local\Chromium\Application\chrome.exe", stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
webgui.startBrowser("http://localhost:8888/#/service/i01.ear")

#OPEN NEW TAB

webgui.startBrowser("http://www.google.fr")

#RELOAD CLEAN WEBGUI

subprocess.Popen("taskkill /F /T /PID %i"%proc1.pid , shell=True)
sleep(2)
webgui.startBrowser("http://localhost:8888/#/service/i01.ear")

I show you the idea later

 

thanks