Open topic with navigation

com.hp.lft.sdk.sap.ui5

## Interface RatingIndicator

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

      public interface RatingIndicator
      extends WebElement

  An SAPUI5 rating indicator object.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `int` | `getMaxRating()` Returns the highest rating level that can be set.
    `Orientation` | `getOrientation()` Returns the visual orientation of rating indicator items.
    `double` | `getRating()` Returns the rating level set for this object.
    `boolean` | `isEnabled()` Returns whether this object is enabled.
    `void` | `setRating(int rating)` Sets the rating level.

    - ### 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 this object is enabled.
      Returns:
        True if enabled.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getRating

          double getRating()
                    throws GeneralLeanFtException

      Returns the rating level set for this object.
      Returns:
        The rating level set for this object.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getMaxRating

          int getMaxRating()
                    throws GeneralLeanFtException

      Returns the highest rating level that can be set.
      Returns:
        The highest rating level that can be set.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getOrientation

                                                      Orientation getOrientation()
                              throws GeneralLeanFtException

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

    - #### setRating

          void setRating(int rating)
                  throws GeneralLeanFtException

      Sets the rating level.
      Parameters:
        `rating` - the rating level to set.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.