How to start WinAppDriver programmatically in the remote machine
Hello All,
My test setup consist of 2 windows machines, first one test runner which will have the my test code in c# and the second one test agent machine where winappdriver is installed along with application under test.
I would like to start the winappdriver in the test agent through the C# code and the code would run on the test runner. Also, I would like to close the winappdriver once test execution is over.
How this could be done? Appreciate any lead on this.
You can start the WinAppDriver with Process.Start(pathToWinAppDriver) and end it with finding the process by its name: Process.GetProcessesByName("nameOfWinAppDriver"). Then end it in e.g. a foreach loop: item.Kill()