Interfacing WPF controls
See original GitHub issueHi, Is it possible to support controls like the ComboBox, or ListView for WPF?
With TestStack.White it is possible to get cell of a ListView, select a ComboBox item by index, how do you do that with WinAppDriver testing a WPF application? for example:
var listView = myTestStackWindow.Get<ListView>(SearchCriteria.ByAutomationId(automationId));
var rowCount = listView.Rows.Count;
var gridPattern = listView.AutomationElement.GetCurrentPattern(GridPattern.Pattern) as GridPattern;
var cell = gridPattern.GetItem(row, column);
cell.TryGetCurrentPattern(ValuePattern.Pattern, out var valueObject);
var valuePattern = valueObject as ValuePattern;
Issue Analytics
- State:
- Created 4 years ago
- Comments:18 (5 by maintainers)
Top Results From Across the Web
Controls - WPF .NET Framework
Creating an Instance of a Control You can add a control to an application by using either Extensible Application Markup Language (XAML) or...
Read more >How to implement custom interfaces in WPF UserControl ...
I have several WPF UserControls. Each of these controls implement an interface IStepEditor. The class declaration is as follow:
Read more >WPF - Controls
WPF - Controls ; 1, Button. A control that responds to user input ; 2, Calendar. Represents a control that enables a user...
Read more >How to Add WPF UI Controls to Your Desktop Application
Adding controls to a WPF Window simply involves selecting the desired control from the toolbox and drag-drop it onto the expected location on ......
Read more >The WPF Menu control
Learn all about the WPF Menu control in this thorough walk-through article.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In WAD UI Recorder, what information is shown when you hover mouse on the ListView in question?
@naeemakram, in the case of WPF bare in mind that
SendKeys
doesn’t reflect the user interaction with the mouse. I’d prefer avoid generating a different interaction because falsifies the aim of the test. For the case ofit doesn’t find any list, I wonder how to query the items works in general so that I can see the elements for example in a DevExpress
ComboBoxEdit