Open topic with navigation

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

C# Syntax

    public interface ITextScreen : HP.LFT.SDK.IClickable, HP.LFT.SDK.ITestObject, HP.LFT.SDK.ITestObjectDescriber, IScreenBase

Public Properties

| Name | Description
--- | --- | ---
| DisplayName | The object display name defined in the Application Model. (Inherited from HP.LFT.SDK.ITestObject)
| 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)
| 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
--- | --- | ---
| Click | Clicks the specified row and column position on the emulator screen.
| Describe<TChild> | Creates a child test object of this test object. (Inherited from HP.LFT.SDK.ITestObjectDescriber)
| Exists | Checks whether this object exists in the AUT before the default object synchronization timeout elapses. (Inherited from HP.LFT.SDK.ITestObject)
| 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)
| 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)
| GetSnapshot | Captures a bitmap of this test object and returns a System.Drawing.Image of it. (Inherited from HP.LFT.SDK.ITestObject)
| GetText | Returns the text from the specified screen rectangle. (Inherited from HP.LFT.SDK.TE.IScreenBase)
| GetTextLocations | Returns all rectangle areas containing the specified text within this object (Windows only). (Inherited from HP.LFT.SDK.ITestObject)
| GetVisibleText | Returns all visible text from this object. (Inherited from HP.LFT.SDK.ITestObject)
| Highlight | Highlights this object in the AUT. (Inherited from HP.LFT.SDK.ITestObject)
| HighlightMatches<TChild> | Highlights all children that match the specified test object type and description filter. (Inherited from HP.LFT.SDK.ITestObject)
| SendKeys | Types the specified string at the current location of the cursor.
| SetDescription | Replaces this test object's description with the supplied description. (Inherited from HP.LFT.SDK.ITestObject)
| 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)
| VerifyImageExists | Checks whether a snapshot of this object contains the supplied image. (Inherited from HP.LFT.SDK.ITestObject)
| 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)
| 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