Package com.hp.lft.sdk.sap.gui
Interface Grid
- All Superinterfaces:
Element,EnabledProvider,LocationInfoProvider,SupportsNativeObject,TableBase<GridCell>,TestObject,TestObjectDescriber,WaitUntilEnabledProvider
A grid control in a SAP GUI for Windows application.
-
Method Summary
Modifier and TypeMethodDescriptionvoidactivateColumn(int columnIndex) Double-clicks the specified column in the grid.voidactivateColumn(String column) Double-clicks the specified column in the grid.voidactivateRow(int rowIndex) Double-clicks the specified row in a grid.voidClears any selected rows or columns in the grid.Returns the first row visible in a scrolled area.Returns the possible selections in the grid.voidPresses the ENTER key when the grid is in focus.voidselectMenuItemById(String menuItemId) Selects the specified menu item from a context menu.Methods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabledMethods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObjectMethods inherited from interface com.hp.lft.sdk.sap.gui.TableBase
activateCell, activateCell, deselectColumn, deselectColumn, deselectRow, deselectRowRange, findAllRowsWithCellTextInColumn, findAllRowsWithCellTextInColumn, findRowWithCellTextInColumn, findRowWithCellTextInColumn, findRowWithCellTextInColumn, findRowWithCellTextInColumn, getRows, getTitle, selectCell, selectCell, selectColumn, selectColumn, selectRow, selectRowRangeMethods 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, waitUntilExistsMethods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describeMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabled
-
Method Details
-
getFirstVisibleRow
Returns the first row visible in a scrolled area.- Returns:
- the first row visible in a scrolled area.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getSelectionMode
Returns the possible selections in the grid.- Returns:
- the possible selections.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
activateColumn
Double-clicks the specified column in the grid. Double-clicking the column selects the entire column, displays another window, or performs another application-specific action.- Parameters:
column- the name of the column.- Throws:
GeneralLeanFtException- if error occurs during execution
-
activateColumn
Double-clicks the specified column in the grid. Double-clicking the column selects the entire column, displays another window, or performs another application-specific action.- Parameters:
columnIndex- 1-based.- Throws:
GeneralLeanFtException- if error occurs during execution
-
activateRow
Double-clicks the specified row in a grid.- Parameters:
rowIndex- 1-based.- Throws:
GeneralLeanFtException- if error occurs during execution
-
clearSelection
Clears any selected rows or columns in the grid.- Throws:
GeneralLeanFtException- if error occurs during execution
-
pressEnter
Presses the ENTER key when the grid is in focus.- Throws:
GeneralLeanFtException- if error occurs during execution
-
selectMenuItemById
Selects the specified menu item from a context menu. A context menu is opened by right-clicking the grid. UseselectColumn,selectRow, orselectCellto open the context menu before invoking this method.- Parameters:
menuItemId- The SAP ID for the menu item.- Throws:
GeneralLeanFtException- if error occurs during execution
-