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

TestStack.White click MahApps Hamburger Menu item

Using TestStack.White I'm trying to click a menu item in the MahApps Hamburger Menu. For example, if I grab any example from their documentation, I'm able to capture a "HamburgerMenuIconItem" from TestStack like this: var item =…
Werner
  • 1,229
  • 1
  • 10
  • 24
0
votes
1 answer

Testack white unable to find window's children

I have a WPF app that I try to automate using testack white and I'm pretty much stuck at the point where I cannot get any children for a Window (which is embedded in a Panel which is the main Window) The problem I believe is not necessarily with…
ctlchr
  • 1
  • 2
0
votes
1 answer

DotMemory error (comparing snapshot to itself)

Attempting to do some memory leak checks in my automation test using the following nUnit 3.8.1 TestStack.White 0.13.3 dotMemory 3.0.20171219.105559 Launching my tests with the following console command, as outlined here. dotMemoryUnit.exe…
user3265613
  • 355
  • 2
  • 14
0
votes
2 answers

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 inspector shows: Mouse move…
Shrini
  • 193
  • 10
0
votes
1 answer

Specflow getting modal window takes a lot of time

I am currently writing autotests for a WPF application and faced a problem that getting the window that does not exist takes a lot of time (at least 1 minute on each autotest which is unacceptable). I have a file saving dialog window that is…
0
votes
0 answers

TestStack.White window from handle or AutomationElement

I have been unable to get a teststack window object by only using an automationelement or window handle. By looking at source code, I can see that this functionality is protected. Does anybody know of an easy way to do this. Without finding the…
Danhol86
  • 1,352
  • 1
  • 11
  • 20
0
votes
1 answer

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", "Appearance" etc. I would like to click on the…
Suhaib Ahmad
  • 487
  • 6
  • 25
0
votes
1 answer

WPF - Generate a mouse down, move and up with specified coordinates (in test)

I need to generate mouse down, mouse move and finally mouse up events to implement a drag-box which performs a calculation based on the size of the box. I've looked at 3 ways of accomplishing this: TestStack.White - I can perform Click() and…
TheMachinist
  • 298
  • 2
  • 10
0
votes
0 answers

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 its working perfect for me. BUT My WPF application has…
Den
  • 1
  • 1
0
votes
1 answer

How to access the Text of the ClassName RichTextBox

I'm attempting to find a document on my window that has a rich text box with text in it using TestStack White, and extract that text. I've tried to use the UIItem Label & TextBox, but White doesn't seem to be able to find the object during my test.…
Dumpcats
  • 453
  • 5
  • 21
-1
votes
1 answer

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:\\VS…
Nikolay
  • 25
  • 3
-1
votes
1 answer

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# i want to know how to cast the automation element…
1 2
3