This repository is an experiment on using Avalonia as a GUI framework and Microsoft's UI Automation for automating GUI on other applications. This uses .NET core to function, which is why it is written in C#. This project is in no way meant to be used as a template as there are flaws that prevent it from being scaleable (like potentially different notepad versions changing the UI structure). However, to test the functionality of this repository to be used as an example for these tools's potential uses, the following steps need to be followed:
- Have a windows machine
- Install the .NET 9.0 SDK
- Install the Avalonia extention for your preferred IDE or text editor.
- Install .NET Avalonia templates
- Open a terminal window and enter
git clone https://github.com/mwlgt/Intro-Avalonia-Dotnet-UIA
cd Intro-Avalonia-Dotnet-UIA
dotnet run Program.cs
- The application should open, and you should be greeted with an interface with four buttons, allowing you to open and close notepad, as well as set the text in its main window to "yes" or "no"