Winform app process not closing?
Hi,
We got a Winform application that hides the Mainform at startup and shows a login dialog instead. If the login is not successful and/or the Mainform is never shown the process will not close after finished test(tried them all close, dispose and closeApp) .
If the test is executed local, we can have a dispose with kill process but this does not work when we run the test on a remote server. The session.WindowHandles only contain the login dialog so we cant switch focus.
Is there any way to close the process with WinAppDriver or do we have to change your winform application to make this work?
Regards
Which language binding are you using? You can use the process class to kill the process.
Im using framework .NET 6.0 and language C#. System.Diagnostics.Process cannot be used to kill process on a remote computer.
Is the remote server windows server?
Yes it is.
Is there any way to make sure that the process is killed before starting a new test even if it runs on a remote Windows Server?