Questions tagged [teststack]

Use this tag for TestStack.White which is the official replacement for White NuGet package

TestStack.White is a NuGet package and is the official replacement for White:

White is a framework for automating rich client applications based on Win32, WinForms, WPF, Silverlight and SWT (Java) platforms.

Site: https://www.nuget.org/packages/TestStack.White/

42 questions
7
votes
4 answers

Wait for application launch without using Thread.Sleep() using FLAUI

I am new to using FLAUI and Automation Testing and would like to use it to test my system. At the moment I am using a Thread.Sleep() to wait till the application launches to then find the Login textbox. Is there a more efficient way to do this…
6
votes
2 answers

TestStack White - Run tests from command line

I'm looking for a solution to start my tests from command line. I created a UnitTest Procjet in VisualStudio2017 for my .NET solution. Added TestStack.White NuGet package to the project. The test are running fluently when I start from the…
Tomi
  • 3,370
  • 1
  • 16
  • 26
4
votes
1 answer

how to grab a WPF TextBlock using teststack

I made a WPF app, and have made some automated tests using teststack.white. They have documentation on how they map controls in Windows to their framework but I don't see TextBlock there anywhere. Their docs are here and here. Thanks
pdschuller
  • 584
  • 6
  • 26
4
votes
1 answer

C# : TestStack.White fails to capture object with SearchCriteria.ByAutomationID provided by Inspect.exe

I am using TestStack.White for automating a test on an existing application. I have received a particular AutomationID "example_ID" for an element using Inspect.exe, however when I am using var something =…
2
votes
0 answers

How manage raising events of UserControls with TestStack.White?

I'm testing my wpf application and I need to verify if certain usercontrol events correctly raise or not like, for example, Loaded/Unloaded events. I've already created my UserControl class (I'm using DevExpress WPF Controls) because I know that…
2
votes
1 answer

C# Teststack.White: sometimes unable to find button

I have a WPF application with one window. In that window I have several StackPanels and several Buttons. White can find each Button perfectly, but with exact the same code just one single Button is seldom found and often not found. I was unable to…
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
0 answers

TestStack.White - using SearchCriteria.ByNativeProperty

Analysing with UI Spy, I want to get the following element: Looking at all this parameter, the "LabeledBy" parameter seems to be the best parameter to identify the element. I'm using TestStack.White for my automation and tried it that…
Jan021981
  • 521
  • 3
  • 28
1
vote
1 answer

TestStack.White Get all Tabs

is there a way to get all elements of a specific type of a window? In my case, I want to get all tabs of the page to filter it afterwards by which has the greater Y-coord. This…
Jan021981
  • 521
  • 3
  • 28
1
vote
1 answer

TestStack.White Menu Operations Affected by System Busy State

This is Windows 10 UI automation testing via nunit3.ConsoleRunner. It is really pretty weird, but the same code that worked flawlessly before my vacation now hangs for so far up to 2 hours or more. I created my own MenuClick() method for our tests…
Jeff H
  • 157
  • 11
1
vote
0 answers

Getting data from panel (automation)

I would like to know is possible that getting list/values from the panel.(bec. panel just panel) This panel behavior is like gridview or listview. Have rows and columns but the control type is pane. enter image description here I use automation…
Gergo Papp
  • 19
  • 1
  • 5
1
vote
1 answer

TestStack.White can't click on menu bar item?

I'm currently making a program that will automate a task that I need to do on a program. One issue I'm currently having, is "clicking" on a menu in a menu bar. I found the class name for the menu bar using Spy++, it's called TActionMainMenuBar, but…
GhostyIs1337
  • 33
  • 1
  • 12
1
vote
1 answer

How to use TestStack.White to simulate click on a dynamic MenuItem in WPF?

I'm trying to use TestStack.White to simulate a click on a menu subitem in a WPF application. That subitem is added at runtime, and I have little control over how it's created. I don't seem to be able to find the menu subitem to click. I have tried…
Black Light
  • 2,358
  • 5
  • 27
  • 49
1
vote
1 answer

Slow to get element with TestStack.White

So what I'm doing is using the .Exist method in TestStack.White to see if an error dialog box exists. The problem I'm having is that finding it is EXTREMELY slow. This is due to the fact the the program has a data table in it with over 400 items,…
845614720
  • 756
  • 1
  • 7
  • 22
1
vote
1 answer

Unable to select Combobox option using TestStack white

Using the below code to select Combobox Option. Combo box is clicked but option is not selected. window.Get(SearchCriteria.ByAutomationId("cbotire")).Select("Three");
Shrini
  • 193
  • 10
1
2 3