Windows Application Driver for Automating windows based apps
https://github.com/Microsoft/WinAppDriver
https://www.youtube.com/watch?v=Q_HUkWczd34&list=PLEiBaBxmVLi9-Ioe2lys5xpR4S4fUOq7F
https://www.automatetheplanet.com/automate-windows-desktop-apps-winappdriver
Installing and Running Windows Application Driver
-
Download Windows Application Driver installer from https://github.com/Microsoft/WinAppDriver/releases
-
Run the installer on a Windows 10 machine where your application under test is installed and will be tested
-
Run WinAppDriver.exe from the installation directory (E.g. C:\Program Files (x86)\Windows Application Driver)
Open Windows 10 Settings. Then navigate to Update & Settings. Click For Developers tab. Enable the Developer mode option.
-
Run the application.
-
Go to task manager - Details tab.
-
Find the application and click on properties.
-
Under General tab - Location.
E.G. for Calculator: C:\Program Files\WindowsApps\Microsoft.WindowsCalculator_10.1804.911.0_x64__8wekyb3d8bbwe therefore in your script DesiredCapabilities the line will look like this:
capabilities.setCapability("app", "Microsoft.WindowsCalculator_8wekyb3d8bbwe!App");
inspect.exe tool Inspect is available on MSDN https://msdn.microsoft.com/library/windows/desktop/dd318521(v=vs.85).aspx.