Share this page

com.hp.lft.sdk.sap.ui5

## Interface ToolBar

- All Superinterfaces:
    Clickable, LocationInfoProvider, SupportDragAndDrop, SupportsNativeObject, TestObject, TestObjectDescriber, VisibleProvider, WaitUntilVisibleProvider, WebElement, WebTestObject, WebTestObjectDescriber

      public interface ToolBar
      extends WebElement

  An SAPUI5 tool bar object.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `ToolBarDesign` | `getDesign()` Returns the visual design of the toolbar.
    `int` | `getLeftItemsCount()` Returns the number of the items in the left part of the toolbar. This number includes separators, but does not include the overflow button.
    `int` | `getMiddleItemsCount()` Returns the number of the items in the middle part of the toolbar. This number includes separators, but does not include the overflow button.
    `int` | `getRightItemsCount()` Returns the number of the items in the right part of the toolbar, including separators.
    `boolean` | `isStandalone()` Returns whether the toolbar is independent or nested in another control.
    `void` | `openOverflow()` Opens the overflow menu that displays additional toolbar items.

    - ### Methods inherited from interface com.hp.lft.sdk.web.WebElement

      `doubleClick, doubleClick, fireEvent, getAccessibilityName, getCSSSelector, getRole, getXPath, hoverTap, hoverTap, longPress, longPress, pan, pan, pinch, pinch, swipe, swipe`

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

      `click, click, click`

    - ### Methods inherited from interface com.hp.lft.sdk.web.WebTestObject

      `getAttribute, getAttributes, getClassName, getComputedStyle, getComputedStyles, getId, getInnerHTML, getInnerText, getName, getOuterHTML, getOuterText, getTagName, getTitle, isVisible`

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

      `getAbsoluteLocation, getLocation, getSize`

    - ### Methods inherited from interface com.hp.lft.sdk.web.WebTestObjectDescriber

      `describe, describe`

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

      `describe`

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

      `getNativeObject`

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

      `dragAndDropOn, dragAndDropOn`

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

      `waitUntilVisible, waitUntilVisible`

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

      `isVisible`

- - ### Method Detail

    - #### isStandalone

          boolean isStandalone()
                        throws GeneralLeanFtException

      Returns whether the toolbar is independent or nested in another control.
      Returns:
        True if the toolbar is independent.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getDesign

                                                      ToolBarDesign getDesign()
                           throws GeneralLeanFtException

      Returns the visual design of the toolbar.
      Returns:
        the visual design of the toolbar. Possible values: `ToolBarDesign`
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getLeftItemsCount

          int getLeftItemsCount()
                         throws GeneralLeanFtException

      Returns the number of the items in the left part of the toolbar. This number includes separators, but does not include the overflow button.
      Returns:
        The number of the items in the left part of the toolbar (including the separators and excluding the overflow button).
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getMiddleItemsCount

          int getMiddleItemsCount()
                           throws GeneralLeanFtException

      Returns the number of the items in the middle part of the toolbar. This number includes separators, but does not include the overflow button.
      Returns:
        The number of the items in the middle part of the toolbar (including the separators and excluding the overflow button).
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getRightItemsCount

          int getRightItemsCount()
                          throws GeneralLeanFtException

      Returns the number of the items in the right part of the toolbar, including separators.
      Returns:
        The number of the items in the right part of the toolbar, including separators.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### openOverflow

          void openOverflow()
                     throws GeneralLeanFtException

      Opens the overflow menu that displays additional toolbar items.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: