WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

How to start WinAppDriver programmatically in the remote machine

Open amitchouksey opened this issue 6 years ago • 1 comments

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.

amitchouksey avatar Sep 24 '20 09:09 amitchouksey

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()

Jteve-Sobs avatar Sep 29 '20 12:09 Jteve-Sobs