Appium WinAppDriver UI Automation Testing Windows Apps in C#
You can see what port the WinAppDriver is listening to at any given moment when it is running; the port number is shown on the console.
But other than that, if you want to run the WinAppDriver on a different port number than the default, you can specify the port number in the command line arguments.
An example will be:
WinAppDriver.exe 28399
A screenshot is given below FYI.
WinAppDriver.exe port number in command line |
How to specify a different port number in the shortcut?
If you've created a shortcut to WinAppDriver.exe on your desktop, you can easily go and add the port number after the exe file path in the Target field.
An example screenshot is given below to show how to set a different Windows Application Driver (WAD) port number for the desktop shortcut:
WinAppDriver Shortcut Port Number Change |
WinAppDriver Azure DevOps Pipeline Task Settings |