Installation Of FlaUI

In this article, I will explain the process of installation of FlaUI, a .NET based open source library designed to test Windows applications.

Prerequisites

  • Should have an internet connection
  • Visual Studio IDE installed

There are three library files available to work with FlaUI.

  • Core
  • UIA2
  • UIA3

FlaUI.Core is a mandatory library, however, based on the application type, you can install either FlaUI.UIA2 or FlaUI.UIA3. It can be installed in two ways.

  • Installing from NuGet Package Manager.
  • Downloading the FlaUI source files and compile, which generates the above-mentioned library files in the bin folder. Then, adding those library files references to your target project.

Here, I’m not showing the second process because of the assumption that most of the people know about compiling the source files.

FlaUI Source location - https://github.com/Roemer/FlaUI

Installing from NuGet Package Manager

Step 1

Open Visual Studio and create a solution (e.g.: Practice).
 
Installation Of FlaUI 

Step 2

Create a new project from the File menu, as shown in the below figure.
 
Installation Of FlaUI 

Choose "Console App" and enter your project name ( eg: CalculatorTest).

Installation Of FlaUI 

Now, the project is created successfully.

Step 4

Right-click on the project created in the previous step and select “Manage NuGet Packages”.
 
Installation Of FlaUI 

The NuGet Package Manager window will open and your screen will look like below.

Installation Of FlaUI 

Step 5

Search for FlaUI under the "Browse" tab.
 
Installation Of FlaUI 

Step 6

Select FlaUI.Core and click on "Install" or click on the down arrow present on the right side of FlaUI.Core.
 
Installation Of FlaUI 

It will give the below popup; click the OK button. (The below popup will not be displayed if you have checked “Do not show this again” checkbox in any of your previous installations)

Installation Of FlaUI 

Upon successful installation, it will show the message like below.

Installation Of FlaUI 

Step 7

After installing FlaUI.Core, we need to install FlaUI.UIA libraries. As discussed earlier, based on the application type, we can install this library file.

Here, I’m installing both - FlaUI.UIA2 and FlaUI.UIA3 - libraries.

Installation Of FlaUI
 
Installation Of FlaUI
 
Installation Of FlaUI
 
Installation Of FlaUI
 
Installation Of FlaUI
 
Installation Of FlaUI 

Once the installations are completed, you can see the libraries added under References in your project.

Installation Of FlaUI 

After installing these libraries, you are ready to automate the Windows application.

If you are interested in watching this full process in a video, please watch the video.