44 questions
1
vote
0
answers
14
views
TestStack.White UiItemContainer.Get() is blocking for the complete BusyTimeout delay even if the searched item is present earlier
In my Test app, using TestStack.White nuget package (last available version: 0.13.3) I need to search an Item with a given AutomationId in a container (main app window). I want to wait for it for max ...
-1
votes
1
answer
65
views
How to track the appearance of a MessageBox for Testing WPF app?
Anybody know how to test Message Box, it`s appearance? While i wrote this code:
[TestMethod]
public void TestDisplayError()
{
Application application = Application.Launch("D:\\...
0
votes
1
answer
148
views
How to Running all tests 2 times with Nunit
i want to run all tests 1 time. One method will run after all tests are finished.
This test will change the language of the application. How can I start all tests from scratch?
0
votes
1
answer
696
views
Getting Exception System.MissingMethodException: Method not found: 'System.Windows.Rect System.Windows.Automation.... in in TestStackWhite Application
I am writing a test method to launch a window application.
Below is my code
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
...
0
votes
0
answers
614
views
Issues automating a WPF with dynamic 'AutomationID' and no 'Name' property - C#
I have been working on an attempt to automate a Windows Program using C#. After using Inspect.exe from Windows Kits (SDK), it seems that many of the elements that I am trying to work with do not have ...
0
votes
0
answers
280
views
How to use keystrokes, e.g. SHIFT + RETURN, using TestStack library in C#
I need to automate some repetive tasks performed in an application installed in my machine. I'm coding in C# and using the library TestStack.White I can key in keyboard inputs like SHIFT or RETURN but ...
-1
votes
1
answer
256
views
Need to enter Text
I tried finding the element using Get but it does not work, thats why i treid with GetElement method
I am trying to enter text in an textbox element found using GetElement in teststack white using C#
...
0
votes
1
answer
208
views
Block cursor movement during automation run
I am writing some Automation tests using Teststack white framework (C#, .net) for my WPF application. I want any cursor movement to be frozen while the tests are running. Is there any way to do that?
...
1
vote
1
answer
920
views
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 method:
Get<...
1
vote
1
answer
141
views
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 ...
0
votes
0
answers
1k
views
TestStack | How to find custom controls and invoke methods / fire events
I have a custom Control HtButton which inherits from Control.
I made a custom FrameworkElementAutomationPeer and override the OnCreateAutomationPeer() in HtButton.
public class ...
0
votes
1
answer
420
views
TestStack.White panel click
I want to create an autologin WinForms app with TestStack.White. Here is my code:
private void button1_Click(object sender, EventArgs e)
{
Process[] process = Process.GetProcessesByName("...
0
votes
1
answer
483
views
Visibility parameter of WPF control not visible with UI Automation?
I started writing test for a WPF application with FlaUI (UI Automation framework). Now I want to get the Visibility value of a couple of buttons.
These buttons are located on the same position in ...
1
vote
1
answer
329
views
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 ...
1
vote
1
answer
869
views
Slow to get element with TestStack.White
So what I'm doing is using the .Exist<T> 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 ...
7
votes
4
answers
10k
views
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 ...
0
votes
2
answers
73
views
Unable to Click a button or Fill text box in a window using Test Stack
When I Inspect a button in the window, below properties are listed with FrameworkId="InternetExplorer". How can I automate the button click or textbox fill by using Teststack.white?
This is what the ...
4
votes
1
answer
1k
views
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.
...
0
votes
1
answer
1k
views
TestStack White ui automation cannot find TabItem
I am automating a wpf windows application. Trying to perform a logout function where I click on the settings icon. A new modal window opens up with several TabItems such as "General", "Security", "...
0
votes
0
answers
229
views
WPF Application Automation Testing Framework support embedded Web pages
I am currently looking for automation open source framework & tool either in C#, Java or any language to automate WPF application.
I have already explore TestStack White for WPF automation and ...
4
votes
1
answer
558
views
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 ...
6
votes
2
answers
572
views
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 ...