WPFPattern Class |
Namespace: SmartBear.TestLeft.TestObjects.WPF
The WPFPattern type exposes the following members.
Name | Description | |
---|---|---|
WPFPattern |
Creates a new instance of the WPFPattern class.
|
Name | Description | |
---|---|---|
ClrFullClassName |
The full class name of the sought-for object. This name includes all the parent namespace names.
| |
Enabled |
Specifies whether the sought-for control is enabled (true) or disabled (false). Disabled controls are typically displayed in grey.
(Inherited from ControlPattern.) | |
Uid |
The Uid property (a unique identifier used for localization) of the sought-for object as it is specified in the application code.
| |
Visible |
Specifies whether the sought-for controls are visible (a control may be out of the screen, but still visible).
(Inherited from ControlPattern.) | |
WPFControlAutomationId |
The AutomationProperties.AutomationId attached property (the UI Automation identifier) of the sought-for object as it is specified in the application code.
| |
WPFControlName |
The name of the sought-for object as it is specified in the application's code. You can use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
WPFControlOrdinalNo |
The object's position in the parent object's collection of child objects. Use it to distinguish the objects that have the same class name and text. You can see the property value in the TestLeft UI Spy panel.
| |
WPFControlText |
The text or title of the sought-for object. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
|
Name | Description | |
---|---|---|
Add |
Adds a custom property to the search pattern and returns the pattern object.
You can explore your tested application in the TestLeft UI Spy to choose the appropriate property and value.
| |
DoAddCustomItem |
Adds a custom property to the search pattern.
(Inherited from SearchPatternBase.) | |
DoAddOwnItems |
Overrides the DoAddOwnItems(SearchPatternBaseSearchPatternItems) method.
(Overrides ControlPatternDoAddOwnItems(SearchPatternBaseSearchPatternItems).) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetPatternItems |
Implements GetPatternItems.
(Inherited from SearchPatternBase.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString |
Returns a user-friendly string representation of properties and values used in the search pattern.
(Inherited from SearchPatternBase.) |