Package com.hp.lft.sdk.sap.gui
Interface Window
- All Superinterfaces:
Element
,LocationInfoProvider
,SupportsNativeObject
,TestObject
,TestObjectDescriber
A window or dialog box containing objects in a SAP GUI for Windows application.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Activates the SAP window.void
close()
Closes the window or dialog box in a SAP GUI for Windows application.Returns the name of the SAP source program that is executing.long
Returns the number of the displayed screen.getText()
Returns the text associated with the object.Returns the transaction the user is executing.Returns the size of the working pane in character metric.boolean
Indicates whether the object is minimized.void
maximize()
Maximizes the window or dialog box.void
resize
(int width, int height) Resizes the window to the specified dimensions.void
Resizes the window so that the available working area has the specified width and height in character metric.void
restore()
Restores a maximized window or dialog box to its original size.void
scroll
(ScrollOrientation orientation, int toPos) Sets the position of the scroll bars.void
selectMenuItemById
(String menuItemId) Selects an item from a context menu.void
sendKey
(SapFunctionKey key) Presses a non-printing key or key combination.Methods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSize
Methods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObject
Methods inherited from interface com.hp.lft.sdk.TestObject
callFTMethod, callFTMethod, exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExists
Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describe
-
Method Details
-
getText
Returns the text associated with the object.- Returns:
- the text associated with the object.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getWorkingPaneSize
Returns the size of the working pane in character metric. The working pane is the area between the toolbar and the status bar.- Returns:
- the size of the working pane.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isMinimized
Indicates whether the object is minimized.- Returns:
- true if minimized.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getTransaction
Returns the transaction the user is executing.- Returns:
- the transaction.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getScreenNumber
Returns the number of the displayed screen.- Returns:
- the number of the screen.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getProgram
Returns the name of the SAP source program that is executing.- Returns:
- the name of the program.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
scroll
Sets the position of the scroll bars.- Parameters:
orientation
- the scroll bar to move. Possible values:ScrollOrientation
toPos
- the position to move the scroll bar to.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
activate
Activates the SAP window.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
close
Closes the window or dialog box in a SAP GUI for Windows application.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
maximize
Maximizes the window or dialog box.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
resize
Resizes the window so that the available working area has the specified width and height in character metric.- Parameters:
size
- the target size.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
resize
Resizes the window to the specified dimensions.- Parameters:
width
- in pixels.height
- in pixels.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
restore
Restores a maximized window or dialog box to its original size.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
selectMenuItemById
Selects an item from a context menu. A context menu is accessed with a right click.- Parameters:
menuItemId
- the ID of the menu item.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
sendKey
Presses a non-printing key or key combination.- Parameters:
key
- the key or combination.- Throws:
GeneralLeanFtException
- if error occurs during execution
-