IUiFormBase Interface

Base interface of all Oracle window test objects.

C# Syntax

public interface IUiObjectBase : HP.LFT.SDK.IClickable, HP.LFT.SDK.ILocationInfoProvider, IUiObjectBase

Public Properties

  Name Description
Property AbsoluteLocation This object's coordinates relative to the screen (in pixels). 0,0 is the top-left corner of the (primary) monitor. (Inherited from HP.LFT.SDK.ILocationInfoProvider)
Property Location This object's coordinates relative to the parent window in pixels. (Inherited from HP.LFT.SDK.ILocationInfoProvider)
Property ObjectType

The general object type. (Inherited from HP.LFT.SDK.Oracle.IUiObjectBase)

Property Size This object's size in pixels. (Inherited from HP.LFT.SDK.ILocationInfoProvider)
Property Title

The window title.

C# Syntax

string Title {get;}
Top

Public Methods

  Name Description
Method Activate

Activates the form.

C# Syntax

void Activate ()
Method BuildMenuPath

Returns the path constructed from the path parts.

C# Syntax

string BuildMenuPath (params string[] menuPathParts)

Parameters

menuPathParts - The menu path parts must be strings. If a string is a full path, separate its items by "->" characters.

Method Click Clicks on this object. (Inherited from HP.LFT.SDK.IClickable)
Method CloseForm

Closes the form using the Exit softkey.

C# Syntax

void CloseForm ()
Method CloseWindow

Closes the form using the X button in the form window title bar.

C# Syntax

void CloseWindow ()
Method GetItem

Returns the menu item with the specified path.

C# Syntax

IMenuItem GetItem(string itemPath)

Parameters

itemPath - The full path of the menu item to return.

Tip: Use the BuildMenuPath method to build the item path string to use for this method's argument.

Returns

The menu item found at the specified item path.

Method PressToolbarButton

Presses a toolbar button.

C# Syntax

void PressToolbarButton (string buttonName)

Parameters

buttonName - The name of the button to press.

Method Save

Performs a Save operation using the Commit softkey.

C# Syntax

void Save ()
Method SelectMenuItem(IMenuItem item)

Selects a menu option in the menu by IMenuItem.

C# Syntax

void SelectMenuItem (IMenuItem item)

Parameters

item - The item to select from the menu.

Tip: Use the GetItem method to retrieve the item to use for this method's argument.

Method SelectMenuItem(string itemPath)

Selects a menu option.

C# Syntax

void SelectMenuItem (string itemPath)

Parameters

itemPath - The path of the menu item to select.

Tip: Use the BuildMenuPath method to build the item path string to use for this method's argument.

Method SendKey

Invokes the specified Oracle softkey. (Inherited from HP.LFT.SDK.Oracle.IUiObjectBase)

Top