Open topic with navigation

com.hp.lft.sdk.oracle

# Interface Notification

Note: Supported in LeanFT versions 14.52 and later.

- All Superinterfaces:
    Clickable, EnabledProvider, LocationInfoProvider, TestObject, TestObjectDescriber, TopLevelObject, UiObjectBase, WaitUntilEnabledProvider

      public interface Notification
      extends UiObjectBase, WaitUntilEnabledProvider, TopLevelObject

  An Oracle error or message window.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `approve()` Clicks the Yes or OK button.
    `void` | `cancel()` Clicks the Cancel button.
    `void` | `clickButton(String name)` Clicks the specified button.
    `void` | `decline()` Clicks the No button.
    `String` | `getClassPath()` The Oracle class hierarchy of the object's Oracle class.
    `String` | `getMessage()` Returns the text of the displayed message.
    `String` | `getTitle()` Returns the window title.
    `NotificationType` | `getType()` Returns the type of notification.
    `void` | `selectDefaultButton()` Clicks the default button in the window.

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

      `getObjectType, sendKey`

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

      `click, click, click`

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

      `getAbsoluteLocation, getLocation, getSize`

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

- - ### Method Detail

    - #### getMessage

          String getMessage()
                     throws GeneralLeanFtException

      Returns the text of the displayed message.
      Returns:
        the text of the displayed message.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getTitle

          String getTitle()
                   throws GeneralLeanFtException

      Returns the window title.
      Returns:
        the window title.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getClassPath

          String getClassPath()
                       throws GeneralLeanFtException

      The Oracle class hierarchy of the object's Oracle class.
      Returns:
        the class hierarchy of the object's.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getType

          NotificationType getType()
                            throws GeneralLeanFtException

      Returns the type of notification. Possible values: `NotificationType`
      Returns:
        the type of notification. Possible values: `NotificationType`
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### approve

          void approve()
                throws GeneralLeanFtException

      Clicks the Yes or OK button.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### cancel

          void cancel()
               throws GeneralLeanFtException

      Clicks the Cancel button.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### decline

          void decline()
                throws GeneralLeanFtException

      Clicks the No button.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### selectDefaultButton

          void selectDefaultButton()
                            throws GeneralLeanFtException

      Clicks the default button in the window.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### clickButton

          void clickButton(String name)
                    throws GeneralLeanFtException

      Clicks the specified button.
      Parameters:
        `name` - The button name.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution