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 TypeMethodDescriptionvoid
activateColumn
(int columnIndex) Double-clicks the specified column in the grid.void
activateColumn
(String column) Double-clicks the specified column in the grid.void
activateRow
(int rowIndex) Double-clicks the specified row in a grid.void
Clears any selected rows or columns in the grid.Returns the first row visible in a scrolled area.Returns the possible selections in the grid.void
Presses the ENTER key when the grid is in focus.void
selectMenuItemById
(String menuItemId) Selects the specified menu item from a context menu.Methods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabled
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.sap.gui.TableBase
activateCell, activateCell, deselectColumn, deselectColumn, deselectRow, deselectRowRange, findAllRowsWithCellTextInColumn, findAllRowsWithCellTextInColumn, findRowWithCellTextInColumn, findRowWithCellTextInColumn, findRowWithCellTextInColumn, findRowWithCellTextInColumn, getRows, getTitle, selectCell, selectCell, selectColumn, selectColumn, selectRow, selectRowRange
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
Methods 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
, orselectCell
to open the context menu before invoking this method.- Parameters:
menuItemId
- The SAP ID for the menu item.- Throws:
GeneralLeanFtException
- if error occurs during execution
-