ITextScreen Interface
A terminal emulator screen that uses text-only HLLAPI or does not support HLLAPI.
C# Syntax
Public Properties
  Name Description
Property DisplayName The object display name defined in the Application Model. (Inherited from HP.LFT.SDK.ITestObject)
Property Parent The parent test object of this test object. The child object must be obtained using the Describe method, otherwise, it returns null. (Inherited from HP.LFT.SDK.ITestObject)
Property Size The column count and row count of the terminal emulator screen. Represented by the Size object. (Inherited from HP.LFT.SDK.TE.IScreenBase)
Top
Public Methods
  Name Description
Method Click Clicks the specified row and column position on the emulator screen.  
Method Describe<TChild> Creates a child test object of this test object. (Inherited from HP.LFT.SDK.ITestObjectDescriber)
Method Exists Checks whether this object exists in the AUT before the default object synchronization timeout elapses. (Inherited from HP.LFT.SDK.ITestObject)
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". (Inherited from HP.LFT.SDK.ITestObject)
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. (Inherited from HP.LFT.SDK.ITestObject)
Method GetSnapshot Captures a bitmap of this test object and returns a System.Drawing.Image of it. (Inherited from HP.LFT.SDK.ITestObject)
Method GetText Returns the text from the specified screen rectangle. (Inherited from HP.LFT.SDK.TE.IScreenBase)
Method GetTextLocations Returns all rectangle areas containing the specified text within this object (Windows only). (Inherited from HP.LFT.SDK.ITestObject)
Method GetVisibleText Returns all visible text from this object. (Inherited from HP.LFT.SDK.ITestObject)
Method Highlight Highlights this object in the AUT. (Inherited from HP.LFT.SDK.ITestObject)
Method HighlightMatches<TChild> Highlights all children that match the specified test object type and description filter. (Inherited from HP.LFT.SDK.ITestObject)
Method SendKeys Types the specified string at the current location of the cursor.  
Method SetDescription Replaces this test object's description with the supplied description. (Inherited from HP.LFT.SDK.ITestObject)
Method Sync Waits until a response is received from the host and the emulator status is set to Ready, or until the timeout is reached, before continuing with the run session. (Inherited from HP.LFT.SDK.TE.IScreenBase)
Method VerifyImageExists Checks whether a snapshot of this object contains the supplied image. (Inherited from HP.LFT.SDK.ITestObject)
Method VerifyImageMatch Checks whether a snapshot of this object and the supplied image are a match, given the specified pixel and RGB tolerance values. (Inherited from HP.LFT.SDK.ITestObject)
Method WaitForText Waits for a specified text to appear on the emulator screen before continuing the run session.

Example 1: This example uses the WaitForText method to wait 10 seconds for the string defined as a regular expression, for example: "CH70001 LAST ACCESS AT 14:27:07 ON THURSDAY":

WaitForText(As.RegExp(@".*LAST ACCESS AT \d\d:\d\d:\d\d ON .*DAY.*"), new Area(3, 1, 3, 80), 10000)

Example 2: This example uses the WaitForText method to wait 5 seconds for a string, for example: "User":

WaitForText("User", new Area(3, 1, 3, 80), 5000)

(Inherited from HP.LFT.SDK.TE.IScreenBase)
Top