Click or drag to resize

ControlPattern Class

A search pattern for onscreen test objects.
Inheritance Hierarchy
System.Object
  SmartBear.TestLeft.TestObjects.SearchPatternBase
    SmartBear.TestLeft.TestObjects.ControlPattern
      More...

Namespace:  SmartBear.TestLeft.TestObjects
Assembly:  SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.70.237.11 (14.70.237.11)
Syntax
public class ControlPattern : SearchPatternBase

The ControlPattern type exposes the following members.

Constructors
  NameDescription
Public methodControlPattern
Creates a new instance of the ControlPattern class.
Top
Properties
  NameDescription
Public propertyEnabled
Specifies whether the sought-for control is enabled (true) or disabled (false). Disabled controls are typically displayed in grey.
Public propertyVisible
Specifies whether the sought-for controls are visible (a control may be out of the screen, but still visible).
Top
Methods
  NameDescription
Public methodAdd
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.
Protected methodDoAddCustomItem
Adds a custom property to the search pattern.
(Inherited from SearchPatternBase.)
Protected methodDoAddOwnItems (Overrides SearchPatternBase.DoAddOwnItems(SearchPatternBase.SearchPatternItems).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetPatternItems (Inherited from SearchPatternBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a user-friendly string representation of properties and values used in the search pattern.
(Inherited from SearchPatternBase.)
Top
See Also
Inheritance Hierarchy
System.Object
  SmartBear.TestLeft.TestObjects.SearchPatternBase
    SmartBear.TestLeft.TestObjects.ControlPattern
      SmartBear.TestLeft.TestObjects.Flash.FlashPattern
      SmartBear.TestLeft.TestObjects.JavaFX.JavaFXPattern
      SmartBear.TestLeft.TestObjects.MSAA.MSAAPattern
      SmartBear.TestLeft.TestObjects.Qt.QtPattern
      SmartBear.TestLeft.TestObjects.Silverlight.SlPattern
      SmartBear.TestLeft.TestObjects.Swing.AWTPattern
      SmartBear.TestLeft.TestObjects.SWT.SWTPattern
      SmartBear.TestLeft.TestObjects.TextRecognition.TextPattern
      SmartBear.TestLeft.TestObjects.UIAutomation.UIAPattern
      SmartBear.TestLeft.TestObjects.VB.VBPattern
      SmartBear.TestLeft.TestObjects.VCL.VCLPattern
      SmartBear.TestLeft.TestObjects.VCLNET.VCLNETPattern
      SmartBear.TestLeft.TestObjects.Web.WebBrowserUIPattern
      SmartBear.TestLeft.TestObjects.Web.WebCellElementPattern
      SmartBear.TestLeft.TestObjects.Web.WebElementPattern
      SmartBear.TestLeft.TestObjects.Web.WebPagePattern
      SmartBear.TestLeft.TestObjects.WindowPattern
      SmartBear.TestLeft.TestObjects.WinForms.WinFormsPattern
      SmartBear.TestLeft.TestObjects.WPF.WPFPattern