When testing WPF ToolBar controls, you can use specific properties of the corresponding test object as well as properties that TestComplete applies to all test and onscreen objects. All of these properties are listed below. The properties are organized into categories: Standard, Extended, RTTI, Debug Agent and others. For more information about this, see Categories of Object Methods and Properties.
Property List | View ↓
Name | Description |
---|---|
_NewEnum
|
Returns an enumerator for the collection of children that belong to the object. |
ChildCount
|
Returns the number of child objects of the given object. |
ClrAppDomain
|
Returns an
AppDomain
object corresponding to the application domain that contains the given object. |
ClrClassName
|
Returns the short class name of an object. |
ClrFullClassName
|
Returns the full class name (including the namespace) of an object. |
Enabled |
Specifies whether an object can accept user input or not. |
Exists
|
Tells you whether an object exists in the system. |
FullName
|
Specifies the full name that uniquely identifies the object in TestComplete. |
Height |
Specifies the height of the object in pixels. |
Id
|
Returns the object’s identifier. |
Left |
Specifies the horizontal position of the object’s left edge relative its parent window. |
MappedName
|
Returns the custom name that is mapped to the original object name and is used to address the object in scripts. |
Name
|
Returns the object name. |
NamedChild
|
Returns a child object stored in the Name Mapping repository (by its index). |
NamedChildCount
|
Returns the number of child objects of an object stored in the Name Mapping repository. |
NodeDescription
|
Returns the description of an object stored in the Name Mapping repository. |
Parent
|
Returns the parent object of the given object. |
PopupMenu |
Returns a Menu object that provides a scripting interface to the control’s context menu (the menu must be opened on screen first). |
ScreenLeft |
Specifies the horizontal position of the object’s left edge in screen coordinates. |
ScreenTop |
Specifies the vertical position of the object’s top edge in screen coordinates. |
Top |
Specifies the vertical position of the object’s top edge relative to the object’s parent window. |
Visible |
Specifies whether the object is visible to users. |
VisibleOnScreen |
Specifies whether any part of the object is currently visible on screen. |
wButtonCount
|
Returns the total number of buttons in the control. |
wButtonPos
|
Returns the position of the specified item on the control. |
wButtonText
|
Returns the text of the control’s item. |
wChecked
|
Specifies whether the control’s item is checked or not. |
wEnabled
|
Specifies whether the control’s item is enabled or disabled. |
wGrayed |
Specifies whether the specified toolbar item is grayed. |
Width |
Specifies the width of the object in pixels. |
wIsCheckButton
|
Specifies whether the control’s item has the Check style. |
wIsDropDownButton
|
Specifies whether an item has the DropDown style. |
wIsSeparatorButton
|
Specifies whether the control’s item has the Separator style (that is, whether the item is a separator). |
WPFControlAutomationId
|
Returns the AutomationIdProperty value that is set for the control in the tested application’s source code. |
WPFControlIndex
|
Returns the index of a WPF application’s object in the child object collection of its parent object. This property is obsolete and is supported for backward compatibility only. Use WPFControlOrdinalNo instead. |
WPFControlName
|
Returns the name of an object as it is specified in the application code. |
WPFControlOrdinalNo
|
Returns the ordinal number of the control among its siblings of the same type. |
WPFControlText
|
Returns the text of an object that resides in a WPF application. |
wVisible
|
Specifies whether the control’s item is visible. |
Standard
This category includes properties that TestComplete applies to all test objects.
Name | Description |
---|---|
_NewEnum
|
Returns an enumerator for the collection of children that belong to the object. |
ChildCount
|
Returns the number of child objects of the given object. |
Enabled |
Specifies whether an object can accept user input or not. |
Exists
|
Tells you whether an object exists in the system. |
FullName
|
Specifies the full name that uniquely identifies the object in TestComplete. |
Height |
Specifies the height of the object in pixels. |
Id
|
Returns the object’s identifier. |
Left |
Specifies the horizontal position of the object’s left edge relative its parent window. |
MappedName
|
Returns the custom name that is mapped to the original object name and is used to address the object in scripts. |
Name
|
Returns the object name. |
Parent
|
Returns the parent object of the given object. |
ScreenLeft |
Specifies the horizontal position of the object’s left edge in screen coordinates. |
ScreenTop |
Specifies the vertical position of the object’s top edge in screen coordinates. |
Top |
Specifies the vertical position of the object’s top edge relative to the object’s parent window. |
Visible |
Specifies whether the object is visible to users. |
VisibleOnScreen |
Specifies whether any part of the object is currently visible on screen. |
Width |
Specifies the width of the object in pixels. |
Extended
This category includes properties that extend test functionality for the WPF ToolBar objects.
Name | Description |
---|---|
PopupMenu |
Returns a Menu object that provides a scripting interface to the control’s context menu (the menu must be opened on screen first). |
wButtonCount
|
Returns the total number of buttons in the control. |
wButtonPos
|
Returns the position of the specified item on the control. |
wButtonText
|
Returns the text of the control’s item. |
wChecked
|
Specifies whether the control’s item is checked or not. |
wEnabled
|
Specifies whether the control’s item is enabled or disabled. |
wGrayed |
Specifies whether the specified toolbar item is grayed. |
wIsCheckButton
|
Specifies whether the control’s item has the Check style. |
wIsDropDownButton
|
Specifies whether an item has the DropDown style. |
wIsSeparatorButton
|
Specifies whether the control’s item has the Separator style (that is, whether the item is a separator). |
wVisible
|
Specifies whether the control’s item is visible. |
.NET
This category includes properties that TestComplete provides for .NET objects.
Name | Description |
---|---|
ClrAppDomain
|
Returns an
AppDomain
object corresponding to the application domain that contains the given object. |
ClrClassName
|
Returns the short class name of an object. |
ClrFullClassName
|
Returns the full class name (including the namespace) of an object. |
WPFControlAutomationId
|
Returns the AutomationIdProperty value that is set for the control in the tested application’s source code. |
WPFControlIndex
|
Returns the index of a WPF application’s object in the child object collection of its parent object. This property is obsolete and is supported for backward compatibility only. Use WPFControlOrdinalNo instead. |
WPFControlName
|
Returns the name of an object as it is specified in the application code. |
WPFControlOrdinalNo
|
Returns the ordinal number of the control among its siblings of the same type. |
WPFControlText
|
Returns the text of an object that resides in a WPF application. |
<Name Mapping>
These properties are available only if the test object has been mapped (see Name Mapping). You can use them in your tests, but they are not displayed in the Object Browser panel.
Name | Description |
---|---|
NamedChild
|
Returns a child object stored in the Name Mapping repository (by its index). |
NamedChildCount
|
Returns the number of child objects of an object stored in the Name Mapping repository. |
NodeDescription
|
Returns the description of an object stored in the Name Mapping repository. |
Other Categories
If TestComplete has access to internal methods, properties and files of your tested application (that is, if it is an Open Application), you can call the internal methods and properties as methods and properties of the appropriate test objects. You can view these properties and methods in corresponding categories (Private, Public, RTTI, Debug Agent, Firefox, and so on). These methods and properties are not described in the TestComplete help file. For more information on them, please see the documentation for the development tools that was used to create the application under test.
Name | Description |
---|---|
wButtonCount
|
Returns the total number of buttons in the control. |
wButtonPos
|
Returns the position of the specified item on the control. |
wButtonText
|
Returns the text of the control’s item. |
wChecked
|
Specifies whether the control’s item is checked or not. |
wEnabled
|
Specifies whether the control’s item is enabled or disabled. |
wGrayed |
Specifies whether the specified toolbar item is grayed. |
wIsCheckButton
|
Specifies whether the control’s item has the Check style. |
wIsDropDownButton
|
Specifies whether an item has the DropDown style. |
wIsSeparatorButton
|
Specifies whether the control’s item has the Separator style (that is, whether the item is a separator). |
WPFControlAutomationId
|
Returns the AutomationIdProperty value that is set for the control in the tested application’s source code. |
WPFControlIndex
|
Returns the index of a WPF application’s object in the child object collection of its parent object. This property is obsolete and is supported for backward compatibility only. Use WPFControlOrdinalNo instead. |
WPFControlName
|
Returns the name of an object as it is specified in the application code. |
WPFControlOrdinalNo
|
Returns the ordinal number of the control among its siblings of the same type. |
WPFControlText
|
Returns the text of an object that resides in a WPF application. |
wVisible
|
Specifies whether the control’s item is visible. |