Package com.hp.lft.sdk.winforms
Interface ToolBar
- All Superinterfaces:
Clickable,DoubleClickable,EnabledProvider,LocationInfoProvider,SupportDragAndDrop,SupportSendKeys,SupportsNativeObject,TestObject,TestObjectDescriber,UiObjectBase,UiObjectBase,VisibleProvider,WaitUntilEnabledProvider,WaitUntilVisibleProvider
A .NET Windows Forms toolbar.
A .NET Windows Forms menu is also known as a ToolBar test object.
A .NET Windows Forms menu is also known as a ToolBar test object.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the tooltip text of the error icon associated with this object.Returns the item with the specified text.getItems()Returns the toolbar items in this toolbar.Returns the selected items in this toolbar.For menu: returns the names of all top menu items; For toolbar: returns the names of all toolbar items.booleanisItemExists(String itemPath) Indicates whether the specified toolbar button or menu button exists.voidSelects the specified item in this menu.voidshowDropdown(int index) Opens the dropdown menu associated with this toolbar button.voidshowDropdown(String itemPath) Opens the dropdown menu associated with this menu item or toolbar item.Methods inherited from interface com.hp.lft.sdk.DoubleClickable
doubleClick, doubleClick, doubleClickMethods 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.SupportDragAndDrop
dragAndDropOn, dragAndDropOnMethods inherited from interface com.hp.lft.sdk.SupportSendKeys
sendKeys, sendKeysMethods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObjectMethods 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.UiObjectBase
getHandle, getNativeClass, getWindowTitleRegExp, isFocused, mouseMoveMethods inherited from interface com.hp.lft.sdk.winforms.UiObjectBase
fireEvent, getFullNamePath, getFullType, getObjectName, getObjectProperty, getText, getWindowClassRegExp, getWindowId, isChildWindow, isOwnedWindowMethods inherited from interface com.hp.lft.sdk.VisibleProvider
isVisibleMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabledMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider
waitUntilVisible, waitUntilVisible
-
Method Details
-
getTopMenuItems
For menu: returns the names of all top menu items; For toolbar: returns the names of all toolbar items.- Returns:
- the names of top menu items
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getItems
Returns the toolbar items in this toolbar.
Do not invoke on a menu.- Returns:
- the toolbar items
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getSelectedItems
Returns the selected items in this toolbar.
Do not invoke on a menu.- Returns:
- the selected items
- Throws:
GeneralLeanFtException- if error occurs during execution
-
select
Selects the specified item in this menu.
Do not invoke on a toolbar.
Only visible items can be selected. You can useshowDropdown(int)orshowDropdown(String)to make the button visible.- Parameters:
itemPath- The full path of the menu item is a list of menu button names separated by semicolons.- Throws:
GeneralLeanFtException- if error occurs during execution
-
showDropdown
Opens the dropdown menu associated with this menu item or toolbar item.- Parameters:
itemPath- The full path of the item. The full path of a menu item is a list of menu item names separated by semicolons.- Throws:
GeneralLeanFtException- if error occurs during execution
-
showDropdown
Opens the dropdown menu associated with this toolbar button.
Do not invoke on a menu.- Parameters:
index- the 0-based index of the button- Throws:
GeneralLeanFtException- if error occurs during execution
-
isItemExists
Indicates whether the specified toolbar button or menu button exists.- Parameters:
itemPath- the full path of the button. The full path of a menu button is a list of menu button names separated by semicolons.- Returns:
- true if exists
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getErrorText
Returns the tooltip text of the error icon associated with this object.- Returns:
- the tooltip text
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getItem
Returns the item with the specified text.- Parameters:
text- the item text- Returns:
- the item with the specified text.
- Throws:
GeneralLeanFtException- if error occurs during execution
-