Open topic with navigation

com.hp.lft.sdk.sap.gui

## Interface OKCode

- All Superinterfaces:
    Element, LocationInfoProvider, SupportsNativeObject, TestObject, TestObjectDescriber

      public interface OKCode
      extends Element

  An OK Code box in a SAP GUI for Windows application.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getValue()` Returns the command code entered in the field.
    `void` | `setValue(java.lang.String value)` Sets the OKCode command.

    - ### Methods inherited from interface com.hp.lft.sdk.sap.gui.Element

      `getId, getName, getType`

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

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

      `getAbsoluteLocation, getLocation, getSize`

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

      `getNativeObject`

- - ### Method Detail

    - #### getValue

          java.lang.String getValue()
                             throws GeneralLeanFtException

      Returns the command code entered in the field.
      Returns:
        the command code.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### setValue

          void setValue(java.lang.String value)
                 throws GeneralLeanFtException

      Sets the OKCode command.
      Parameters:
        `value` - the text to enter.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.