How To Configure Your Computer to use Cycle's Native App Steps

How To Configure Your Computer to use Cycle's Native App Steps

Beginning with version 2.4, Cycle adds a new set of steps designed for interacting with native applications on your computer in specifically targeted ways. In order to use these steps, you will need to take the following steps on your machine:

 

Step 1: Download and setup WinAppDriver in Cycle

Download and Install WinAppDriver

You can download WindowsApplicationDriver.msi from Microsoft's github page for WinAppDriver here (v1.1.1 or newer recommended). When you run the installer, you can either use the default install location or choose a specific one, but be sure to copy the path for later use in Cycle.

In most cases it will be something close to: C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe

Set the WinAppDriver Location in Cycle's Project Settings

Once the install of WinAppDriver is complete, open up Cycle (version 2.4 or later). Navigate to your project settings from the button at the bottom of the left-hand Project directory panel. Drill into Execution Settings and scroll to the very bottom:
 

winappdriversetting.png

Either paste in your copied file path (including \WinAppDriver.exe) or click the 3 dots to navigate to it through the Windows explorer. You will now be able to execute the family of Steps identified in the Step Guide with the WinAppDriver filter.

 

Turn on Windows Developer Mode

Turning on Windows Developer Mode will allow for more transparency into unsigned applications. You can access this setting in Windows 10 from Windows Settings > Update & Security > For developers:

developermode.png

Step 2 (optional): Using Inspect.exe to identify objects in native applications

Now that you have your WinAppDriver set up, you may need some help in identifying the specific objects or components within the native app that you want Cycle to target. Inspect.exe is a Windows program that can be very helpful for this purpose.

 

Download and Install Windows SDK

Downloading the Windows SDK will give you access to Inspect.exe.

You can download the Windows SDK installer from here.

Follow the instructions to download the installer with its default settings. Once it completes, you will have the ability to open and run Inspect.exe which (depending on your installation) should be located in:

C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86

 

 

Having developer mode on and the Windows SDK installed you should be ready to run Inspect.exe. For more help on how to use this tool, see Microsoft's documentation here.

 
 
    • Related Articles

    • How To Decide When to Use Native App Steps

      Beginning with Cycle 2.4, Cycle now has the ability to interact with native Windows applications by using the WinAppDriver (WAD). These new native app steps allow Cycle to interact with Windows applications without relying on desktop steps that are ...
    • How to Use xPath With Native App Steps

      Native app steps and xPath Cycle native app steps (using WinAppDriver) allow for the use of several object locator types to identify objects within the app. Whenever possible, it is best to identify application objects using the WinAppDriver ...
    • How to use Inspect.exe and Locator Types with Native Apps

      To use Cycle native app steps, it is recommended that Window’s Inspect.exe is used to identify app Object Identifiers. It is recommended to use Inspect.exe with multiple monitors. If you have not downloaded and installed Inspect.exe, follow the ...
    • Connection Refused error opening native apps

      Problem I receive the error: “Connection refused…” when attempting to open a native app using Cycle. Solution The “Connection refused...” error occurs when there is an issue with the WinAppDriver Cycle is attempting to use. The following guide walks ...
    • How To Use WinAppDriver UI Recorder to Record xPath

      Why You Might Use WinAppDriver (WAD) UIRecorder Cycle native app steps using WinAppDriver allow for the use of several object locator types to identify objects within the app. Whenever possible, it is best to identify application objects using the ...