Questions tagged [flaui]

FlaUI is a .NET library which helps with automated UI testing of Windows applications: Win32, WinForms, WPF, Store Apps and so on.

It is based on native UI Automation libraries from Microsoft and therefore kind of a wrapper around them.

FlaUI wraps almost everything from the UI Automation libraries but also provides the native objects in case someone has a special need which is not covered (yet) by FlaUI.

Some ideas are copied from the UIAComWrapper project or TestStack.White but rewritten from scratch to have a clean codebase.

58 questions
9
votes
3 answers

How can I run UI tests with FlaUI on a remote machine whilst not RDP'd into it?

We have some UI tests that use FlaUI to automate interaction with the windows UI. When we run these tests on the build server, they fail to interact with the UI unless someone is connected via RDP. The error we get from the tests is just a Could not…
Sam Holder
  • 32,535
  • 13
  • 101
  • 181
5
votes
2 answers

System cannot find file specified with NUnit3 console and testparam

I tried to run flaUiTests with the command prompt with the following command: pathToConsole\nunit3-console.exe pathToApp\App.dll --testparam:App=pathToExecutable\App.exe In the testcode I use the testparam with te following code: string…
Doortjuh
  • 71
  • 8
3
votes
1 answer

SetScrollPercent for Movies & TV with FlaUI

I'm trying to automate Movies & TV process slider and i tried the code below: using System; using System.Diagnostics; using FlaUI.UIA3; namespace ConsoleApp1 { class Program { static void Main(string[] args) { …
user8971711
3
votes
2 answers

System.ComponentModel.Win32Exception: 'Access is denied' error while Automating a WPF app using FlaUI+SpecFlow

I have landed up in a problem that doesn't occur very frequently. I am trying to automate the UI testing using FlaUI and SpecFlow. I am trying to launch the app exe.The app runs for sometime and then throws the error. I am getting the error…
Apoorv
  • 2,023
  • 1
  • 19
  • 42
3
votes
0 answers

Accessing the UI controls of a WPF project from Unit Test project once the progress bar has finished loading

I have a WPF application and I am trying to Automate the UI testing. I am using FlaUI for this. I am also using NUnit as the testing framework. My application uses DevExpress controls and currently I am facing an issue wherein I am not able to…
Apoorv
  • 2,023
  • 1
  • 19
  • 42
2
votes
2 answers

Reference Windows only project from NET MAUI

I have been working on tool that is done using NET MAUI. Now I would like to automate Windows UI, but I can't figure out how to do that. I have tried to download FlaUI NuGet, but can't get it working as it requires project to be Net7.0-windows. So I…
10101
  • 2,232
  • 3
  • 26
  • 66
1
vote
1 answer

C# FlaUi null value with FindFirstDescendant

The document inside the FlaUI Inspect pane doesn't initially appear. When I launch the FlaUI Inspect application, the document I indicated with the arrow sign in the image, which is 'Client -- Zero Trust Fabric Agent', doesn't appear. However, after…
Anıl
  • 23
  • 4
1
vote
1 answer

How to call a generic method in PowerShell?

I created a dll in C# and then called this dll in PowerShell. Below I have a method called TypeName() public class ClassTest { public string TypeName() where T : FlaUI.Core.AutomationElements.AutomationElement { return…
megaultron
  • 399
  • 2
  • 15
1
vote
0 answers

How to click button with FlaUI?

I am trying to automate an application installer using c# and FlaUI. I am able to successfully bring my desired application to the foreground, and seemingly set focus. I then gather all buttons, and prompt if I find a button named 'Next >' (the name…
Fuzz Evans
  • 2,893
  • 11
  • 44
  • 63
1
vote
1 answer

How to set value in field using FlaUI?

How do I use FlaUI to set the value in a specific field after clicking the "Save As" button in Paint? I'm trying to use FlaUI to automate filling a field in Paint after clicking "Save As". The field in question is named "Name:". Here is the code I…
megaultron
  • 399
  • 2
  • 15
1
vote
1 answer

Automating windows SaveAs dialog using FlaUI

I am at my wits end, trying to automate our tests for the Windows SaveAs-dialog. The thing is that the automation code works on some machines but not all. It works on my local box and a few other, but we need to make it work on all our test…
1
vote
1 answer

Giving to FLAUI the command for hit a key combination (such as ALT + F4) changes the keyboard controls

i'm making an automated test with flaui, it includes Keyboard.Press(VirtualKeyShort.ALT); Keyboard.Press(VirtualKeyShort.F4); it works fine, but then my keyboard controls are completely different, for example i'm not able anymore to write using…
1
vote
1 answer

FlaUI: Unable to call any Retry method through Python.NET

I am trying to call FlaUI FlaUI.Core.Tools.Retry class method WhileNull through Python.NET (https://github.com/FlaUI/FlaUI/blob/master/src/FlaUI.Core/Tools/Retry.cs). However, I am not able to figure out how to pass method using System.Func. The…
Amit Tendulkar
  • 178
  • 5
  • 15
1
vote
2 answers

Can't use Expand and Collapse methods or patterns on TreeItems using FlaUI in C#?

I'm trying to define a function that expands or collapses a given TreeItem by a target state using FlaUI for testing a program in C#. I'm able to find the element, but I can't access any information or methods for expanding and collapsing TreeItem…
1
vote
1 answer

Flaui Application open multiple times

I'm working on FlaUI tests for my app and I have an issue with application launch. The steps in base class looks like application starts, wait for open, maximize window, wait for control to change status and then it should go to test execution. But…
AlaC
  • 11
  • 1
1
2 3 4