I am new to SilkTest and have been learning a lot from doing and from this forum.
In one of my tests, I would like to close a running app if it is running (in other words, check to make sure it's running before shutting it down). I have ruled out using .active and .enabled since the app may be running but not be either active or enabled. .Exists seems to give me the same results whether or not the app is running.
Could someone please give me some advice on the best way to do this? Perhaps a way to see if an app is running in memory? Thanks.
I played a little more with the .Exists() method and it does work with one exception: this particular app places itself in the tool tray when minimized.
The .Exists() method does not seem to see it when it's there. I have tried using a .Restore() to bring it back to the desktop, but that does not seem to do it.
Would the IsVisible() method help here? Any and all ideas are greatly appreciated.
I imagine the reason that Exists() doesn't work is that it is looking for a MainWin but since its minimized to the tray it doesn't actually exist. If you just want to see if its still running you could try searching for the process.