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 SummaryModifier and TypeMethodDescriptionvoidactivate()Activates the SAP window.voidclose()Closes the window or dialog box in a SAP GUI for Windows application.Returns the name of the SAP source program that is executing.longReturns 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.booleanIndicates whether the object is minimized.voidmaximize()Maximizes the window or dialog box.voidresize(int width, int height) Resizes the window to the specified dimensions.voidResizes the window so that the available working area has the specified width and height in character metric.voidrestore()Restores a maximized window or dialog box to its original size.voidscroll(ScrollOrientation orientation, int toPos) Sets the position of the scroll bars.voidselectMenuItemById(String menuItemId) Selects an item from a context menu.voidsendKey(SapFunctionKey key) Presses a non-printing key or key combination.Methods inherited from interface com.hp.lft.sdk.LocationInfoProvidergetAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportsNativeObjectgetNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObjectcallFTMethod, 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, waitUntilExistsMethods inherited from interface com.hp.lft.sdk.TestObjectDescriberdescribe
- 
Method Details- 
getTextReturns the text associated with the object.- Returns:
- the text associated with the object.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getWorkingPaneSizeReturns 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
 
- 
isMinimizedIndicates whether the object is minimized.- Returns:
- true if minimized.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getTransactionReturns the transaction the user is executing.- Returns:
- the transaction.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getScreenNumberReturns the number of the displayed screen.- Returns:
- the number of the screen.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getProgramReturns the name of the SAP source program that is executing.- Returns:
- the name of the program.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
scrollSets 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
 
- 
activateActivates the SAP window.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
closeCloses the window or dialog box in a SAP GUI for Windows application.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
maximizeMaximizes the window or dialog box.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
resizeResizes 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
 
- 
resizeResizes the window to the specified dimensions.- Parameters:
- width- in pixels.
- height- in pixels.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
restoreRestores a maximized window or dialog box to its original size.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectMenuItemByIdSelects 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
 
- 
sendKeyPresses a non-printing key or key combination.- Parameters:
- key- the key or combination.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-