ITextScreen Interface
A terminal emulator screen that uses text-only HLLAPI or does not support HLLAPI.

C# Syntax

Public Properties
 NameDescription
PropertyDisplayNameThe object display name defined in the Application Model. (Inherited from HP.LFT.SDK.ITestObject)
PropertyParentThe 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)
PropertySizeThe 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
 NameDescription
MethodClickClicks the specified row and column position on the emulator screen.  
MethodDescribe<TChild>Creates a child test object of this test object. (Inherited from HP.LFT.SDK.ITestObjectDescriber)
MethodExistsChecks whether this object exists in the AUT before the default object synchronization timeout elapses. (Inherited from HP.LFT.SDK.ITestObject)
MethodFindChildren<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)
MethodGetDescriptionReturns 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)
MethodGetSnapshotCaptures a bitmap of this test object and returns a System.Drawing.Image of it. (Inherited from HP.LFT.SDK.ITestObject)
MethodGetTextReturns the text from the specified screen rectangle. (Inherited from HP.LFT.SDK.TE.IScreenBase)
MethodGetTextLocationsReturns all rectangle areas containing the specified text within this object (Windows only). (Inherited from HP.LFT.SDK.ITestObject)
MethodGetVisibleTextReturns all visible text from this object. (Inherited from HP.LFT.SDK.ITestObject)
MethodHighlightHighlights this object in the AUT. (Inherited from HP.LFT.SDK.ITestObject)
MethodHighlightMatches<TChild>Highlights all children that match the specified test object type and description filter. (Inherited from HP.LFT.SDK.ITestObject)
MethodSendKeysTypes the specified string at the current location of the cursor.  
MethodSetDescriptionReplaces this test object's description with the supplied description. (Inherited from HP.LFT.SDK.ITestObject)
MethodSyncWaits 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)
MethodVerifyImageExistsChecks whether a snapshot of this object contains the supplied image. (Inherited from HP.LFT.SDK.ITestObject)
MethodVerifyImageMatchChecks 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)
MethodWaitForTextWaits 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