Set desired capabilities in Windows desktop app testing
- Starting from Katalon Studio 10.3.0, Windows Desktop app testing is available again as a beta feature. It supports spy, record, and execution of basic test cases using a new built-in driver based on the FlaUI library, replacing WinAppDriver. No separate installation is required.
- If you are using earlier 10.x versions of Katalon Studio, Windows Desktop app testing remains unavailable due to incompatibility with the W3C WebDriver protocol. To access the legacy WinAppDriver-based functionality, use Katalon Studio 9.x. For details, refer to the Katalon Studio Release Notes: Version 10.x.
This article shows you how to configure desired capabilities for Windows Desktop Application testing.
Set up Desired Capabilities in Katalon Studio 10.3.0
Katalon Studio 10.3.0 introduces a new built-in Windows driver that follows the W3C WebDriver specification. As a result, all non-standard desired capabilities must now include the appium:
namespace prefix.
If you previously defined custom capabilities in Project Settings > Desired Capabilities > Windows, update them as follows:
Legacy Capability | Updated Format |
---|---|
appWorkingDir | appium:appWorkingDir |
appArguments | appium:appArguments |
To update:
- Go to Project > Settings > Desired Capabilities > Windows.
- Update any non-standard capabilities by adding the
appium:
prefix. - Click Apply and Close to save your changes.
- You only need to update the desired capabilities once per project.
- The capability
ms:waitForAppLaunch
is no longer supported. - Use the built-in keyword
Windows.delay(<numberOfSeconds>)
to pause test execution and wait for the application to launch.
Use cases
Example 1: Set delaying time for an app launch
The following example shows you how to set desired capabilities to wait for a defined amount of time before launching an application.
- Download and install WinAppDriver version 1.2 onwards. You can refer to this document to install WinAppDriver: Set up WinAppDriver.
- Appium version 1.16.0 onwards to support WinAppDriver.
Go to the desired capabilities settings, click Add, then input the following value:
Name | Type | Value |
---|---|---|
ms:waitForAppLaunch | string | 25(*) |
(*) This means delaying the app launch for 25 seconds. The maximum is 50 seconds.
Example 2: Use desired capabilities with Native Windows Recorder
The following example shows you how to set desired capabilities in Native Windows Recorder.
Open the Native Windows Recorder session dialog, in the Configuration field, click Edit.
Click (+) Add and input the following values:
Name | Type | Value |
---|---|---|
appWorkingDir | String | C:\User**user_name**\Desktop\workspace\katalon |
appArguments | String | --arg1 --arg2 |