Open topic with navigation

com.hp.lft.sdk.java

# Interface ToolBar

- All Superinterfaces:
    Clickable, DoubleClickable, LocationInfoProvider, SupportsNativeObject, TestObject, TestObjectDescriber, UiObjectBase, VisibleProvider, WaitUntilVisibleProvider, WaitUntilEnabledProvider, EnabledProvider

      public interface ToolBar
      extends UiObjectBase, TestObject

  A Java toolbar.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `ToolBarButton` | `getButton(java.lang.String text)` Returns the `ToolBarButton` with the specified text.
    `java.util.List<ToolBarButton>` | `getButtons()` Returns the toolbar buttons in this toolbar.
    `java.util.List<ToolBarButton>` | `getSelectedButtons()` Returns the selected toolbar buttons in this toolbar.

    - ### Methods inherited from interface com.hp.lft.sdk.java.UiObjectBase

      `createObject, createObject, fireEvent, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getNativeClass, getObjectName, getObjectProperty, getPath, getStatics, getTagName, isEnabled, isFocused, isVisible, sendKeys, sendKeys`

    - ### Methods inherited from interface com.hp.lft.sdk.Clickable

      `click, click, click`

    - ### Methods inherited from interface com.hp.lft.sdk.DoubleClickable

      `doubleClick, doubleClick, doubleClick`

    - ### 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.TestObject

      `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`

    - ### Methods inherited from interface com.hp.lft.sdk.EnabledProvider

      `isEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider

      `waitUntilVisible, waitUntilVisible`

    - ### Methods inherited from interface com.hp.lft.sdk.VisibleProvider

      `isVisible`

- - ### Method Detail

    - #### getButtons

          java.util.List<ToolBarButton> getButtons()
                                            throws GeneralLeanFtException

      Returns the toolbar buttons in this toolbar.
      Returns:
        the `ToolBarButton` objects in this toolbar.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getSelectedButtons

          java.util.List<ToolBarButton> getSelectedButtons()
                                                    throws GeneralLeanFtException

      Returns the selected toolbar buttons in this toolbar.
      Returns:
        the selected `ToolBarButton` objects in this toolbar.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getButton

                                                      ToolBarButton getButton(java.lang.String text)
                           throws GeneralLeanFtException

      Returns the `ToolBarButton` with the specified text.
      Parameters:
        `text` - the text.
      Returns:
        the button with the specified text.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.