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
0
votes
0 answers

Is there a way to map object repository (all UI elements) of a WPF application and use it to test the application with FlaUI automation libraries

I am trying to migrate my auto test cases from a paid tool (TestComplete) to a free tool (FlaUI libraries). I have found that in my TestComplete test project, elements are found using aliases which are mapped to the UI elements using…
0
votes
0 answers

I am unable to locate Xpath of the element of windows based desktop application using FlaUInspect tool

I am unable to detect the Xpath of the locator as its control type is not detected. Can someone guide how to define it to fetch values or to perform actions on the Custom table. I want to perform action on Row 1 within within which there are…
0
votes
0 answers

How do I click on button on firefox?

I'm aware of selenium (but for some reason, the real page that has a complex HTML, I couldn't retrieve it well using DOM, so I eventually give up - I'm trying luck with FlaUI). To start out, I'm trying some simple task such as open a page and click…
Jack
  • 16,276
  • 55
  • 159
  • 284
0
votes
1 answer

Data is not being returned from FindFirstDescendant call

I am writing a Unit Test and using FlaUI. I launch an application and then get the main window which is getting the right window but when I try to get a dataGrid from the window it keeps returning null. The code I am using is…
0
votes
0 answers

Win form test automation finding information using the ui attribute id

Disclaimer: I am not an Win form test automation expert... I am work with FlaUI, XUnit and C#. Through FlaUI, I was able to obtain something called the UIA Attribute Id as referenced here by Microsoft. My question is how can I obtain the actual…
Johnny Wu
  • 1,297
  • 15
  • 31
0
votes
1 answer

(FlaUI) CombBox does not have Items, Select() does not work

I am using FlaUI on top of my XUnit to do the test, but the ComboBox doesn't seem to work. I was able to retrieve the ComboBox object, but it does not have any Items and Select() doesn't work either. What am I missing? there's code…
Johnny Wu
  • 1,297
  • 15
  • 31
0
votes
0 answers

.NET C# Tools to read desktop UI Elements

I need to develop application for Linux (.NET/C#) which can fetch UI elements from desktop windows UI. I need their element-class-names, position etc. Are there any good .NET frameworks or libraries for that? I need this to get info, which…
0
votes
0 answers

UIAutomation FlaUI - Detect Both Closing and Opening Windows at the Application Level

I have successfully used the solution for detecting opening windows described here: UIAutomation FlaUI - Detect opening windows on application level. However, I would also like to also detect closing window events in addition to opening window…
dcr
  • 1
0
votes
1 answer

How to get accessibility info of child contents in top active window C# WPF

I am able to get top active window (title) in my code but I wanted to know how to get all the children(content and controls or elements -image, link, button etc) inside the active top window in my code. I searched many links such as - Retrieve all…
0
votes
1 answer

How to control any windows program with no available API

What is the best way to control a program's user interface (clicking, entering text, drop down selection, etc) when the program has no available API? I've heard of AutoHotKey and FlaUI and watched a few videos but haven't seen a great example yet.…
Retsied
  • 79
  • 8
0
votes
0 answers

Why are some AutomationPeer are sealed?

I have a DataGrid where an additional parameter exists at a DataGridRow. I want to test this parameter with FlaUi. I have already read up a bit on AutomationPeers. As far as I understand you have to create a new AutomationPeer and make the parameter…
ascholz
  • 179
  • 1
  • 9
0
votes
2 answers

UIAutomation FlaUI - Detect opening windows on application level

I am using FlaUI for test automation and it works fine so far. Now I am trying to detect opening windows and while plain UIAutomation offers to register an eventhandler for "AutomationElement.RootElement" I cannot find a way to translate this to…
Gope
  • 1,672
  • 1
  • 13
  • 19
0
votes
1 answer

How to Inject Mocks in FlaUI/WPF Window?

In my WPF app, I have a MainWindow.xaml and a related MainWindow.xaml.cs. The latter has a property DatabaseAccessor which accesses a database: public partial class MainWindow : System.Windows.Window { public IDatabaseAccessor DatabaseAccessor {…
Marteng
  • 1,179
  • 13
  • 31
0
votes
1 answer

How to handle multiple windows in FlaUI desktop automation-outlook

I am new to desktop automation and FLaUI.I am using visual studio I am testing a plugin for Outlook. So I am able to click on New Email and it opens a new window for ne email compose. Now I want to switch to that window from my main window. How can…
0
votes
1 answer

Python.NET: How to access generic member of an interface

I am trying to use a generic member from an interface in FlaUI through Python.NET. The below C# code works, // myLegacyTreeItem is a valid AutomationElement // this works and the default action expands the tree…
Amit Tendulkar
  • 178
  • 5
  • 15