C# Syntax
public interface IScreen : HP.LFT.SDK.ITestObject, HP.LFT.SDK.ITestObjectDescriber, IScreenBase
Name | Description | |
---|---|---|
CursorPosition | The current row and current column on the terminal emulator screen. Represented by the Position object. | |
DisplayName | The object display name defined in the Application Model. (Inherited from HP.LFT.SDK.ITestObject) | |
Id | The terminal emulator screen ID. | |
InputFieldCount | The terminal emulator screen input field count. | |
Label | The label of the terminal emulator screen. | |
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) | |
ProtectedFieldCount | The terminal emulator screen protected field count. | |
Size | The column count and row count of the terminal emulator screen. Represented by the Size object. (Inherited from HP.LFT.SDK.TE.IScreenBase) |
Name | Description | |
---|---|---|
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) | |
SendTEKeys | Sends a keystroke or string of keystrokes to the current cursor position on the emulator screen. | |
SetCursorPosition | Overloaded. Changes the position of the cursor on the emulator screen. | |
SetDescription | Replaces this test object's description with the supplied description. (Inherited from HP.LFT.SDK.ITestObject) | |
SetText | Overloaded. Copies a string to a specific location on the emulator screen. | |
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) |