ITestObject Interface
Base interface for all test objects.
C# Syntax
public interface ITestObject : ITestObjectDescriber  
Public Properties
  Name Description
Property DisplayName The object display name defined in the Application Model.  
Property Parent The parent test object of this test object. The child object must be obtained using the Describe method, otherwise, it returns null.  
Top
Public Methods
  Name Description
Method Describe<TChild> Creates a child test object of this test object. (Inherited from HP.LFT.SDK.ITestObjectDescriber)
Method Exists Overloaded. Checks whether this object exists in the AUT before the default object synchronization timeout elapses.  
Method FindChildren<TChild> Returns all the child test objects that match the specified test object type and description filter. For example, you can use this method to retrieve all Web buttons on a Page with type="submit".  
Method GetDescription Returns a clone of the description for this test object. The test object must be obtained using the Describe method, otherwise, this method returns null.  
Method GetSnapshot Captures a bitmap of this test object and returns a System.Drawing.Image of it.  
Method GetTextLocations Overloaded. Returns all rectangle areas containing the specified text within this object (Windows only).  
Method GetVisibleText Overloaded. Returns all visible text from this object.  
Method Highlight Highlights this object in the AUT.  
Method HighlightMatches<TChild> Highlights all children that match the specified test object type and description filter.  
Method SetDescription Replaces this test object's description with the supplied description.  
Method VerifyImageExists Checks whether a snapshot of this object contains the supplied image.  
Method VerifyImageMatch Overloaded. Checks whether a snapshot of this object and the supplied image are a match, given the specified pixel and RGB tolerance values.  
Top