Open topic with navigation

com.hp.lft.sdk.oracle

# Interface ApplicationSession

Note: Supported in LeanFT versions 14.52 and later.

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

      public interface ApplicationSession
      extends UiObjectBase, TopLevelObject

  An Oracle Applications session window.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `exit()` Exits the Oracle Applications session window.
    `<T extends UiFormBase> T` | `getActiveWindow(Class<T> type)` Returns the test object representing the currently active window.
    `String` | `getClassPath()` The Oracle class hierarchy of the object's Oracle class.
    `void` | `sync()` Instructs LeanFT to wait the specified number of seconds to synchronize with Oracle Applications before continuing the run session.
    `void` | `sync(long seconds)` Instructs LeanFT to wait the specified number of seconds to synchronize with Oracle Applications before continuing the run session.

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

    - #### exit

          void exit()
             throws GeneralLeanFtException

      Exits the Oracle Applications session window.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### sync

          void sync()
             throws GeneralLeanFtException

      Instructs LeanFT to wait the specified number of seconds to synchronize with Oracle Applications before continuing the run session.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### sync

          void sync(long seconds)
             throws GeneralLeanFtException

      Instructs LeanFT to wait the specified number of seconds to synchronize with Oracle Applications before continuing the run session.
      Parameters:
        `seconds` - If a number is passed, it will wait this number of seconds for a response.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getActiveWindow

          <T extends UiFormBase> T getActiveWindow(Class<T> type)
                                            throws GeneralLeanFtException

      Returns the test object representing the currently active window.
      Type Parameters:
        `T` - the generic type of the oracle window test object.
      Parameters:
        `type` - the oracle window interface type to find.
      Returns:
        a test object representing the current active window.
      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