Supported Microsoft Controls

Applies to TestLeft 15.40, last modified on March 17, 2022

TestLeft can simulate user actions and access internal properties and methods of various Microsoft controls. You can also command your tests to recognize your custom controls as Microsoft controls to simulate user actions against them.

About Supported Microsoft Controls

TestLeft can simulate user actions against any Microsoft control via graphical user interface. In addition, TestLeft provides extended support for the most of Microsoft controls.

In your tests, you can cast these controls to appropriate interfaces that extend the control’s functionality with a number of additional methods and properties. Use those methods and properties to simulate various user actions over the controls, for example, select individual items or retrieve item text.

Supported Controls

TestLeft recognizes controls by their class name. Below is a full list of the Microsoft controls that TestLeft supports.

Windows Forms
Controls Library Classes
CheckBox .NET Framework v. 2.0 - 4.8 System.Windows.Forms.CheckBox
DataGrid .NET Framework v. 2.0 - 4.8 System.Windows.Forms.DataGrid
DataGridView .NET Framework v. 2.0 - 4.8 System.Windows.Forms.DataGridView
DomainUpDown .NET Framework v. 2.0 - 4.8 System.Windows.Forms.DomainUpDown
LinkLabel .NET Framework v. 2.0 - 4.8 System.Windows.Forms.LinkLabel
Main menus and context menus .NET Framework v. 2.0 - 4.8 System.Windows.Forms.ContextMenuStrip
System.Windows.Forms.MenuStrip
NumericUpDown .NET Framework v. 2.0 - 4.8 System.Windows.Forms.NumericUpDown
PropertyGrid .NET Framework v. 2.0 - 4.8 System.Windows.Forms.PropertyGrid
RadioButton .NET Framework v. 2.0 - 4.8 System.Windows.Forms.RadioButton
Strip StatusBar (StatusStrip) .NET Framework v. 2.0 - 4.8 System.Windows.Forms.StatusStrip
Strip Toolbar (ToolStrip) .NET Framework v. 2.0 - 4.8 System.Windows.Forms.ToolStrip
WPF
Controls Library Classes
WPFRibbon WPF Toolkit, .NET Framework v. 4.5.x - 4.8 Microsoft.Windows.Controls.Ribbon.Ribbon
System.Windows.Controls.Ribbon.Ribbon
WPFToolkitCalendar WPF Toolkit, .NET Framework v. 4.0 - 4.8 Microsoft.Windows.Controls.Calendar
WPFToolkitDataGrid WPF Toolkit, .NET Framework v. 4.0 - 4.8 Microsoft.Windows.Controls.DataGrid
WPFToolkitDatePicker WPF Toolkit, .NET Framework v. 4.0 - 4.8 Microsoft.Windows.Controls.DatePicker
MFC
Controls Library Classes
MFCEditBrowseCtrl MFC Feature Pack for Visual C++ MFC Feature Pack for Visual C++ 2008, Visual C++ 2010, 2012, 2013, 2015 CMFCEditBrowseCtrl
MFCGridCtrl CGridCtrl ver. 2.26, 2.27 CGridCtrl
MFCMenuBar MFC Feature Pack for Visual C++ MFC Feature Pack for Visual C++ 2008, Visual C++ 2010, 2012, 2013, 2015 CMFCMenuBar
MFCMenuButton MFC Feature Pack for Visual C++ MFC Feature Pack for Visual C++ 2008, Visual C++ 2010, 2012, 2013, 2015 CMFCMenuButton
MFCPropertyGridCtrl MFC Feature Pack for Visual C++ MFC Feature Pack for Visual C++ 2008, Visual C++ 2010, 2012, 2013, 2015 CMFCPropertyGridCtrl
MFCRibbonBar MFC Feature Pack for Visual C++ MFC Feature Pack for Visual C++ 2008, Visual C++ 2010, 2012, 2013, 2015 CMFCRibbonBar
MFCStatusBar MFC Feature Pack for Visual C++ MFC Feature Pack for Visual C++ 2008, Visual C++ 2010, 2012, 2013, 2015 CMFCStatusBar
MFCTabCtrl MFC Feature Pack for Visual C++ MFC Feature Pack for Visual C++ 2008, Visual C++ 2010, 2012, 2013, 2015 CMFCTabCtrl
CMFCOutlookBarTabCtrl
MFCToolBar MFC Feature Pack for Visual C++ MFC Feature Pack for Visual C++ 2008, Visual C++ 2010, 2012, 2013, 2015 CMFCToolBar
Silverlight
Controls Library Classes
AutoCompleteBox Microsoft Silverlight 4 and 5 System.Windows.Controls.AutoCompleteBox
Button Microsoft Silverlight 4 and 5 System.Windows.Controls.Button
System.Windows.Controls.HyperlinkButton
Calendar Microsoft Silverlight 4 and 5 System.Windows.Controls.Calendar
CheckBox Microsoft Silverlight 4 and 5 System.Windows.Controls.CheckBox
ComboBox Microsoft Silverlight 4 and 5 System.Windows.Controls.ComboBox
DataGrid Microsoft Silverlight 4 and 5 System.Windows.Controls.DataGrid
DatePicker Microsoft Silverlight 4 and 5 System.Windows.Controls.DatePicker
ListBox Microsoft Silverlight 4 and 5 System.Windows.Controls.ListBox
PasswordBox Microsoft Silverlight 4 and 5 System.Windows.Controls.PasswordBox
RadioButton Microsoft Silverlight 4 and 5 System.Windows.Controls.RadioButton
RichTextBox Microsoft Silverlight 4 and 5 System.Windows.Controls.RichTextBox
ScrollBar Microsoft Silverlight 4 and 5 System.Windows.Controls.ScrollBar
ScrollViewer Microsoft Silverlight 4 and 5 System.Windows.Controls.ScrollViewer
Slider Microsoft Silverlight 4 and 5 System.Windows.Controls.Slider
TabControl Microsoft Silverlight 4 and 5 System.Windows.Controls.TabControl
TextBox Microsoft Silverlight 4 and 5 System.Windows.Controls.TextBox
ToggleButton Microsoft Silverlight 4 and 5 System.Windows.Controls.Primitives.ToggleButton
TreeView Microsoft Silverlight 4 and 5 System.Windows.Controls.TreeView

Recognizing Custom Controls

To command TestLeft to recognize your custom controls as Microsoft controls, cast your control to the interface of the appropriate type.

If your control does not fit the type of the control, for which the interface provides support, it may improperly respond to commands that TestLeft will send, and simulating user actions against your control may cause errors.

See Also

Supported Controls

Highlight search results