Share this page

com.hp.lft.sdk.powerbuilder

## Interface EditField

- All Superinterfaces:
    Clickable, DoubleClickable, EnabledProvider, LocationInfoProvider, SupportDragAndDrop, SupportSendKeys, TestObject, TestObjectDescriber, UiObjectBase, UiObjectWithLayoutInfo, VisibleProvider, WaitUntilEnabledProvider, WaitUntilVisibleProvider

      public interface EditField
      extends UiObjectWithLayoutInfo, TestObject

  A power builder edit box.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `select(int fromCharPos, int toCharPos)` Selects the specified text in the edit box. Note: All positions are 0-based.
    `void` | `setSecure(String encryptedText)` Sets the encoded value of this edit box.
    `void` | `setText(String text)` Sets the text string in the edit field.

    - ### Methods inherited from interface com.hp.lft.sdk.powerbuilder.UiObjectWithLayoutInfo

      `isRightAligned, isRightToLeftLayout, isRightToLeftReading`

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

      `getAttachedText, getObjectName, getText, getWindowClassRegExp, getWindowExtendedStyle, getWindowId, getWindowStyle`

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

      `getHandle, getNativeClass, getWindowTitleRegExp, isFocused, mouseMove`

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

      `click, click, click`

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

      `doubleClick, doubleClick, doubleClick`

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

      `getAbsoluteLocation, getLocation, getSize`

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

      `sendKeys, sendKeys`

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

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

    - #### setText

          void setText(String text)
                throws GeneralLeanFtException

      Sets the text string in the edit field.
      Parameters:
        `text` - the text entered in the edit field.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### select

          void select(int fromCharPos,
                      int toCharPos)
               throws GeneralLeanFtException

      Selects the specified text in the edit box.
      Note: All positions are 0-based.
      Parameters:
        `fromCharPos` - the character position from which the selection starts, inclusive.
        `toCharPos` - the character position at which the selection ends, inclusive.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### setSecure

          void setSecure(String encryptedText)
                  throws GeneralLeanFtException

      Sets the encoded value of this edit box.
      Generate the encoded value using the Password Encoder utility (CryptonApp.exe), available from the UFT Developer menu in your IDE, or from the UFT Developer installation\bin folder.
      Note: While the SetSecure method enables you to hide passwords displayed on the screen while running or editing a UFT Developer test, it is not intended to be a secure way to protect password information.

      Parameters:
        `encryptedText` - the encoded text.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: