DEV Community

loading...

cannot kill or terminate UWP application in windows 10 using subprocess library in python

shivaallani7 profile image shivaallani7 ・1 min read

I am automating windows UWP desktop application and wanted to kill or terminate the application after use. I am using Subprocess library in python to launch the application but could not kill it after use.

WinappdriverProcess = subprocess.Popen(['powershell.exe', 'Start-Process -FilePath "C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe" -WindowStyle Minimize'])
CRMProcess = subprocess.Popen(['powershell.exe',

Discussion (0)

pic
Editor guide