public interface ToolBar extends UiObjectBase, TestObject
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorText()
Returns the tooltip text of the error icon associated with this object.
|
ToolBarItem |
getItem(java.lang.String text)
Returns the item with the specified text.
|
java.util.List<ToolBarItem> |
getItems()
Returns the toolbar items in this toolbar.
|
java.util.List<ToolBarItem> |
getSelectedItems()
Returns the selected items in this toolbar.
|
java.util.List<java.lang.String> |
getTopMenuItems()
For menu: returns the names of all top menu items; For toolbar: returns the names of all toolbar items.
|
boolean |
isItemExists(java.lang.String itemPath)
Indicates whether the specified toolbar button or menu button exists.
|
void |
select(java.lang.String itemPath)
Selects the specified item in this menu.
|
void |
showDropdown(int index)
Opens the dropdown menu associated with this toolbar button.
|
void |
showDropdown(java.lang.String itemPath)
Opens the dropdown menu associated with this menu item or toolbar item.
|
fireEvent, getFullNamePath, getFullType, getObjectName, getObjectProperty, getText, getWindowClassRegExp, getWindowId, isChildWindow, isOwnedWindow
getHandle, getNativeClass, getWindowTitleRegExp, isEnabled, isFocused, isVisible, mouseMove
doubleClick, doubleClick, doubleClick
getAbsoluteLocation, getLocation, getSize
sendKeys, sendKeys
dragAndDropOn, dragAndDropOn
getNativeObject
exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch
describe
java.util.List<java.lang.String> getTopMenuItems() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executionjava.util.List<ToolBarItem> getItems() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executionjava.util.List<ToolBarItem> getSelectedItems() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executionvoid select(java.lang.String itemPath) throws GeneralLeanFtException
showDropdown(int)
or showDropdown(String)
to make the button visible.itemPath
- The full path of the menu item is a list of
menu button names separated by semicolons.GeneralLeanFtException
- if error occurs during executionvoid showDropdown(java.lang.String itemPath) throws GeneralLeanFtException
itemPath
- The full path of the item.
The full path of a menu item is a list of menu item names separated by semicolons.GeneralLeanFtException
- if error occurs during executionvoid showDropdown(int index) throws GeneralLeanFtException
index
- the 0-based index of the buttonGeneralLeanFtException
- if error occurs during executionboolean isItemExists(java.lang.String itemPath) throws GeneralLeanFtException
itemPath
- the full path of the button.
The full path of a menu button is a list of menu button names separated by semicolons.GeneralLeanFtException
- if error occurs during executionjava.lang.String getErrorText() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executionToolBarItem getItem(java.lang.String text) throws GeneralLeanFtException
text
- the item textGeneralLeanFtException
- if error occurs during execution