Table of Contents

Interface IWindow

Namespace
HP.LFT.SDK.SAP.GUI
Assembly
HP.LFT.SDK.dll

A window or dialog box containing objects in a SAP GUI for Windows application.

public interface IWindow : IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject
Inherited Members
Extension Methods

Properties

IsMinimized

Indicates whether the window is minimized.

bool IsMinimized { get; }

Property Value

bool

Program

The name of the SAP source program that is executing.

string Program { get; }

Property Value

string

ScreenNumber

The number of the displayed screen.

uint ScreenNumber { get; }

Property Value

uint

Text

The text associated with the object.

string Text { get; }

Property Value

string

Transaction

The transaction the user is executing.

string Transaction { get; }

Property Value

string

WorkingPaneSize

The size of the working pane in character metric. The working pane is the area between the toolbar and the status bar.

Size WorkingPaneSize { get; }

Property Value

Size

Methods

Activate()

Activates this window.

void Activate()

Close()

Closes this window or dialog box.

void Close()

Maximize()

Maximizes this window or dialog box.

void Maximize()

Resize(Size)

Resizes this window so that the available working area has the specified width and height in character metric. Use WorkingPaneSize to read the current size in character metric.

void Resize(Size size)

Parameters

size Size

The target size in character metric units.

Resize(int, int)

Resizes this window so that the available working area has the specified width and height in character metric. Use WorkingPaneSize to read the current size in character metric.

void Resize(int width, int height)

Parameters

width int

The target width in character metric units.

height int

The target height in character metric units.

Restore()

Restores a maximized window or dialog box to its original size.

void Restore()

Scroll(ScrollOrientation, int)

Sets the position of the the specified scroll bar.

void Scroll(ScrollOrientation orientation, int toPos)

Parameters

orientation ScrollOrientation

The scroll bar to move. Possible values: ScrollOrientation.

toPos int

The 0-based position to move the scroll bar to, in pixels.

SelectMenuItemById(string)

Selects an item from a context menu.

void SelectMenuItemById(string menuItemId)

Parameters

menuItemId string

The item ID.

SendKey(SapFunctionKey)

Presses a non-printing key or key combination.

void SendKey(SapFunctionKey key)

Parameters

key SapFunctionKey

The key or key-combination.