Open topic with navigation

com.hp.lft.sdk.sap.ui5

## Interface NavigationBar

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

      public interface NavigationBar
      extends WebElement

  An SAPUI5 navigation bar object.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `NavigationBarItem` | `getItem(java.lang.String itemText)` Returns a specified item from the navigation bar.
    `java.util.List<NavigationBarItem>` | `getItems()` Returns all items in the navigation bar.
    `NavigationBarItem` | `getSelectedItem()` Returns the selected item in the navigation bar.
    `void` | `openMenu()` Opens the popup menu to show hidden navigation items.
    `void` | `select(NavigationBarItem item)` Selects the specified item in the navigation bar.
    `void` | `select(java.lang.String itemText)` Selects the specified item (by name) in the navigation bar.

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

    - #### getItems

          java.util.List<NavigationBarItem> getItems()
                                              throws GeneralLeanFtException

      Returns all items in the navigation bar.
      Returns:
        All items in the navigation bar.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getSelectedItem

                                                      NavigationBarItem getSelectedItem()
                                     throws GeneralLeanFtException

      Returns the selected item in the navigation bar.
      Returns:
        The selected item in the navigation bar or null if none exists.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getItem

                                                      NavigationBarItem getItem(java.lang.String itemText)
                             throws GeneralLeanFtException

      Returns a specified item from the navigation bar.
      Parameters:
        `itemText` - the text of the item to get.
      Returns:
        The specified item from the navigation bar.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### select

          void select(java.lang.String itemText)
               throws GeneralLeanFtException

      Selects the specified item (by name) in the navigation bar.
      Parameters:
        `itemText` - the text of the item to select.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### select

          void select(NavigationBarItem item)
               throws GeneralLeanFtException

      Selects the specified item in the navigation bar.
      Parameters:
        `item` - the `NavigationBarItem` item to select.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### openMenu

          void openMenu()
                 throws GeneralLeanFtException

      Opens the popup menu to show hidden navigation items.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.