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
1
vote
0 answers

Some Elements not being identified by Flaui while is shown in Inspect tool and the value property is not being read as in application

Trying to automate my windows application with FlaUI and noticed some components are not recognized. Launch application immediately opens a window which has a Grid Pane. The opened window has an item to be selected from the grid (from the list of…
SandyKrish
  • 11
  • 2
1
vote
1 answer

Flaky tests passing locally and on TeamCity only when remote desktop window is open

I have some UI tests (written using FlaUI) that will pass locally but will fail on TeamCity. When I tried watching the tests run on the remote build agent through remote desktop to see the error, I realized that the tests will pass if the remote…
1
vote
0 answers

Capture Screen/Windows from Virtual Desktop where we are in main desktop using c#

I am creating a multi desktop application that create and open many desktops in the windows user session,To do this i am using Win32 functions like CreateDesktop,SwitchDesktop, OpenDesktop..Etc. and I create an icon in the task bar, and the user…
1
vote
0 answers

Running Desktop UI Automation tests in Azure pipelines

I have UI Automation Tests written in SpecFlow & C# and automated using FlaUI. The tests are running absolutely fine on my local machine. Lately, I wanted them to be the part of my UI Automation Build Pipeline. Further to this, I had an Azure WVD as…
Apoorv
  • 2,023
  • 1
  • 19
  • 42
1
vote
1 answer

Type password automatically for RDP connection (CredentialUIBroker)

As an exercise, I'm trying to automate typing RDP credentials using FlaUI. My OS is Windows 10. I'm able to start mstsc.exe and type into this window: But then I get this window and I can't find it anywhere: It's not an mstsc window, even though…
Francesco B.
  • 2,729
  • 4
  • 25
  • 37
1
vote
1 answer

Getting the visibility of a progress bar in a WPF application using FlaUI Automation

I am automating a WPF app using FlaUI. I have a progressbar that is Inderminate. Once the progressbar gets Collapsed, The UI is loaded. I want to implement a Retry mechanism on the ProgressBar Visibility but I am not able to find the correct…
Apoorv
  • 2,023
  • 1
  • 19
  • 42
1
vote
2 answers

Is it possible to read data from Pane control type?

I've started using FlaUI for Automating my thick client .net application. The application is Windows Form based. The start was good and Login Form was identified and I could Login, but after that came the dead end and I found that almost everything…
user85
  • 1,526
  • 5
  • 26
  • 42
1
vote
1 answer

c# FlaUi get all the Values from DataGridView of another program

I'm trying to pull all the values from another program's DataGridBox. For that I'm using FlaUi. I made a code that does what I want. However, it is very slow. Is there a faster way to pull up all the values from another program's DataGridView using…
shiny
  • 171
  • 4
  • 13
1
vote
1 answer

Getting the LegacyIAccessible.Description property using UI Automation and/or FlaUI

I want to get the value from the LegacyIAccessible description property of a list item using either UI Automation or preferably FlaUI. I have the below working but it is not consistent. I am unsure why but it seems to only work if the target window…
bradkt
  • 111
  • 1
  • 7
0
votes
0 answers

Issue running Fla UI test cases using Azure Pipelines

I am currently writing automated test cases using Fla UI. When running the test cases using ADO pipeline, getting an error "System.NullReferenceException: Object reference not set to an instance of an object." When we do RDP for the machine and…
swathi
  • 1
  • 1
0
votes
0 answers

How to Enter Value in table, if the table cells as Document F#

Want to enter value in table, followed the Hierarchy that is tree up to the table but not able select and edit the value inside the table, Found by Flaui that cell refers as document. enter image description here Table is having the Name and…
PLazy
  • 1
  • 2
0
votes
0 answers

Read content from Java GUI without having the source code

I want to read content in a Java program which uses Java GUI as the frontend. Usually I would do this with FlaUI in C# but since Java GUI is not mainly a Windows Application, I can't use FlaUI on it. I don't need to invoke buttons or click in the…
SrMilton
  • 45
  • 6
0
votes
0 answers

Why does FlaUI fail to find elements at times?

my code is below IntPtr hwnd = FindWindow(null, "dingding"); GetWindowThreadProcessId(hwnd, out dingID); var myapp = FlaUI.Core.Application.Attach(dingID); var myautomation = new UIA3Automation()); var searchTextBox =…
0
votes
1 answer

UI automation frameworks can't see the elements on windows desktop

I have a problem with accessing elements from Desktop after cloning and starting a Virtual machine's snapshot. While catching the VM in the mentioned state, using pywinauto leads to a tree that looks like this: Pane - 'Program Manager' (L0, T0,…
0
votes
0 answers

FlaUI | Unable to find DevExpress control Combobox

We are using DevExpress controls 18.2v. Unable to extract devexpress combo boxes edit using FlaUI to implement automation testing. I tried multiple ways (Xpath, process id, etc., and no luck.) using the code below, unable to get a reference to the…