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
1 answer

Unable to import FlaUI.FlaUI3 library in pythonnet

I am trying to load FlaUI libraries using pythonnet. The code is able to load the FlaUI.UIA3.dll. However, importing FlaUI.UIA3 namespace fails. Here is my code, import clr import sys dll_path =…
Amit Tendulkar
  • 178
  • 5
  • 15
0
votes
2 answers

how to access elements not read by FlaUI using UIA2 or UIA3?

How to access/Find elements not read by FLAUI using UIA2 or UIA3? since FLAUIInspect does not show up any of the available element under the window (while inspect.exe shows all available elements) FindAll (Children/Descendants) will not give any…
SandyKrish
  • 11
  • 2
0
votes
1 answer

UI Automation - InvokePattern.Invoke() blocking execution until user interaction in integration tests

Edit: I went with the route of using FlaUI. I have updated the tag on this question to include it and also posted my solution as the answer. I'm writing some integration tests for an app that monitors certain windows forms apps to see if those apps…
Ash K
  • 1,802
  • 17
  • 44
0
votes
1 answer

In FLAUI trying to Find First Child element that start with some letters

In FLAUI trying to get a reference to a child element that starts with some letters or contains some for letters. example start with or "DOC" or contains "DOC" what I'm trying to do is that I'm opening some office files like doc,xls, ppt. and want…
phux
  • 1
  • 1
0
votes
2 answers

How to test with views and not windows in Visual Studio 2019 with FlaUI?

Is it possible to test views with FlaUI? I have usercontrols with views and tabs on it and not windows. With windows you can do this: Application.GetMainWindow But how can I do that with views?
Doortjuh
  • 71
  • 8
0
votes
0 answers

An unhandled exception of type System.ComponentModel.Win32Exception occurred in FlaUI.Core.dll

I am trying some windows application automation using flaUi automation. here I tried to click on menu in an application which supposed to load form before perform any further action. Code: var menu =…
0
votes
2 answers

Robot Framework using FlaUILibraray XPath could not be found

Robot Developer, now entering the world of Windows Application Automation, writing a simple demo using FlaUI Library Test Case FLA FlaUILibrary.Launch Application notepad.exe FlaUILibrary.Attach Application By Name Notepad …
YelCav
  • 51
  • 7
0
votes
0 answers

Handle not supported property with FlaUI?

This is my current code, that sometimes fails and that gives me that exception: An exception of type 'FlaUI.Core.Exceptions.PropertyNotSupportedException' occurred in FlaUI.Core.dll but was not handled in user code. The requested property 'Name…
0lan
  • 179
  • 1
  • 14
0
votes
2 answers

Not able to get the current active /selected TabITem in DevExpress DxTabControl in WPF

I have a WPF app and I am trying to Automate it using FlaUI. I am facing a problem with the DxTabControl. I have provided Automation IDs to the DxTabControl. I am using DXTabControl.ItemHeaderTemplate to generate TabItems dynamically. According to…
Apoorv
  • 2,023
  • 1
  • 19
  • 42
0
votes
1 answer

Equivalent code generation using FlaUI.UIA3 for accessing DevExpress DataGrid rows & columns in WPF

I am using FlaUI to automate my WPF app. I have a datagrid control from DevExpress. I want to access any individual row and all the columns of that row and edit it using FlaUI. The DevExpress forum has the following sample available but this is for…
Apoorv
  • 2,023
  • 1
  • 19
  • 42
0
votes
1 answer

Visual Studio incorrect assignment into variable

I'm using FlaUI library to automate Windows Calculator. Since Calculator is a Windows store app, window actions such as move, change visual state etc. should be performed on the main window's parent. Doing so, i encountered the following strange…
Atalia.d
  • 131
  • 1
  • 13
-1
votes
1 answer

Loop through CheckBoxes to find a particular one based upon string

I have an object which is defined as Pane in FlaUInspect with a number of Checkboxes loaded dynamically when the program starts. For a Unit Test I need to loop through all the checkBoxes and find one particular item based upon a string. The code…
-1
votes
1 answer

An error on GetMainWindow function FlaUI C#

I'm using FlaUI library to automate desktop app. I took an error on try to run code to take a window of launched program. Error: Could not find process with id: ***' Details of error. System.Exception HResult=0x80131500 Message=Could not find…
1 2 3
4