Interface IWindow
A window or dialog box containing objects in a SAP GUI for Windows application.
Inherited Members
Namespace: HP.LFT.SDK.SAP.GUI
Assembly: HP.LFT.SDK.dll
Syntax
public interface IWindow : IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject
Properties
IsMinimized
Indicates whether the window is minimized.
Declaration
bool IsMinimized { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Program
The name of the SAP source program that is executing.
Declaration
string Program { get; }
Property Value
| Type | Description |
|---|---|
| string |
ScreenNumber
The number of the displayed screen.
Declaration
uint ScreenNumber { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Text
The text associated with the object.
Declaration
string Text { get; }
Property Value
| Type | Description |
|---|---|
| string |
Transaction
The transaction the user is executing.
Declaration
string Transaction { get; }
Property Value
| Type | Description |
|---|---|
| string |
WorkingPaneSize
The size of the working pane in character metric. The working pane is the area between the toolbar and the status bar.
Declaration
Size WorkingPaneSize { get; }
Property Value
| Type | Description |
|---|---|
| Size |
Methods
Activate()
Activates this window.
Declaration
void Activate()
Close()
Closes this window or dialog box.
Declaration
void Close()
Maximize()
Maximizes this window or dialog box.
Declaration
void Maximize()
Resize(Size)
Resizes this window so that the available working area has the specified width and height in character metric.
Declaration
void Resize(Size size)
Parameters
| Type | Name | Description |
|---|---|---|
| Size | size | The target size in pixels. |
Resize(int, int)
Resizes the window to the specified dimensions.
Declaration
void Resize(int width, int height)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | In pixels. |
| int | height | In pixels. |
Restore()
Restores a maximized window or dialog box to its original size.
Declaration
void Restore()
Scroll(ScrollOrientation, int)
Sets the position of the the specified scroll bar.
Declaration
void Scroll(ScrollOrientation orientation, int toPos)
Parameters
| Type | Name | Description |
|---|---|---|
| ScrollOrientation | orientation | The scroll bar to move. Possible values: ScrollOrientation. |
| int | toPos | The 0-based position to move the scroll bar to, in pixels. |
SelectMenuItemById(string)
Selects an item from a context menu.
Declaration
void SelectMenuItemById(string menuItemId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | menuItemId | The item ID. |
SendKey(SapFunctionKey)
Presses a non-printing key or key combination.
Declaration
void SendKey(SapFunctionKey key)
Parameters
| Type | Name | Description |
|---|---|---|
| SapFunctionKey | key | The key or key-combination. |