Package com.hp.lft.sdk.sap.gui
Interface ToolBar
- All Superinterfaces:
- Element,- EnabledProvider,- LocationInfoProvider,- SupportsNativeObject,- TestObject,- TestObjectDescriber,- WaitUntilEnabledProvider
A toolbar control in a SAP GUI for Windows application,
- 
Method SummaryModifier and TypeMethodDescriptionbuildMenuPath(Object... menuPathParts) Returns the path of the specified menu item.voidpressButton(String buttonId) Presses the specified toolbar button.voidpressContextButton(String buttonId) Presses the specified toolbar button to open the button's context menu.voidselectMenuItem(int index) Selects the specified menu item from the toolbar button context menu.voidselectMenuItem(String path) Selects the specified menu item from the toolbar button context menu.voidSelects the specified menu item from the toolbar button context menu by SAP ID.Methods inherited from interface com.hp.lft.sdk.EnabledProviderisEnabledMethods 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.TestObjectDescriberdescribeMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProviderwaitUntilEnabled, waitUntilEnabled
- 
Method Details- 
buildMenuPathReturns the path of the specified menu item.- Parameters:
- menuPathParts- the menu path parts can be: logical name(String), full path(String), or 1-based index(Integer).
- Returns:
- the path of the specified menu item.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
pressButtonPresses the specified toolbar button.- Parameters:
- buttonId- the button's ID in text format.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
pressContextButtonPresses the specified toolbar button to open the button's context menu.- Parameters:
- buttonId- the button's ID in text format.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectMenuItemSelects the specified menu item from the toolbar button context menu. You can usebuildMenuPath(Object...)to build the item path string to be used as the itemPath argument for this method.- Parameters:
- path- the menu item name
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectMenuItemSelects the specified menu item from the toolbar button context menu.- Parameters:
- index- 1-based.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectMenuItemByIdSelects the specified menu item from the toolbar button context menu by SAP ID.- Parameters:
- id- the SAP ID of the context menu item.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-