Open topic with navigation

com.hp.lft.sdk.sap.ui5

## Interface Carousel

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

      public interface Carousel
      extends WebElement

  An SAPUI5 carousel object.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `int` | `getItemsCount()` Returns the number of items contained in the carousel.
    `Orientation` | `getOrientation()` Returns the orientation of the carousel items.
    `boolean` | `isEnabled()` Returns whether the carousel is enabled.
    `void` | `next()` Slides this carousel to the next item.
    `void` | `previous()` Slides this carousel to the previous item.

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

    - #### isEnabled

          boolean isEnabled()
                     throws GeneralLeanFtException

      Returns whether the carousel is enabled.
      Returns:
        True if enabled.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getOrientation

                                                      Orientation getOrientation()
                              throws GeneralLeanFtException

      Returns the orientation of the carousel items.
      Returns:
        The orientation of the carousel items. Possible values: `Orientation`
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getItemsCount

          int getItemsCount()
                     throws GeneralLeanFtException

      Returns the number of items contained in the carousel.
      Returns:
        The number of items contained in the carousel.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### next

          void next()
             throws GeneralLeanFtException

      Slides this carousel to the next item.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### previous

          void previous()
                 throws GeneralLeanFtException

      Slides this carousel to the previous item.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.