Windows applications built using the Universal Windows Platform (UWP) API require Cycle to open the application using the AppID of the application rather than than specifying the executable application as needed when opening Classic Windows (Win32) applications.
Determining the AppID of a UWP application is not as straightforward as finding the executable and providing the full path and executable name to Cycle.
UWP applications will give an error if you attempt to open the application using the application executable file.
The example below shows an attempt to open the Calculator app using calc.exe:
PowerShell can be used to find the AppID of a given application.
1) Search for PowerShell in the Windows search box
2) Open the PowerShell application. If PowerShell is not found, you will need to install PowerShell on your machine.
3) Run the command below in PowerShell replacing 'Application Name' with the name of the application you need to open using the AppID in Cycle:
get-StartApps | Where-Object {$_.Name -like '*Application Name*'}
For example, this would be the command to get the AppID for the Calculator application:
get-StartApps | Where-Object {$_.Name -like '*Calculator*'}
The command returns the name of the application as well as the AppID
In this example, the AppID for Calculator is 'Microsoft.WindowsCalculator_8wekyb3d8bbwe!App'
4) Use the Cycle step below to open applications using AppID
I open app "<APP_NAME>" with id "<APP_ID>"
Example step to open Calculator:
Given I open app "Calculator" with id "Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"
The application successfully opens in Cycle: