com.hp.lft.sdk.uiapro

Enum ToggleState

Supported in UFT Developer version 24.2 and later

UIA Pro is supported as a technical preview.

    • Enum Constant Detail

      • Off

        public static final ToggleState Off
        The UIA Pro element is not selected, checked, marked, or otherwise activated.
      • On

        public static final ToggleState On
        The UIA Pro element is selected, checked, marked, or otherwise activated.
      • Indeterminate

        public static final ToggleState Indeterminate
        The UI Automation element is in an indeterminate state. Can be used to indicate whether the user has acted on a control. For example, a checkbox can appear checked and dimmed, indicating an indeterminate state. Creating an indeterminate state is different from disabling the control. Consequently, a checkbox in the indeterminate state can still receive the focus. When the user clicks an indeterminate control, the ToggleState cycles to its next value.
    • Method Detail

      • values

        public static ToggleState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ToggleState c : ToggleState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ToggleState valueOf(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getValue

        public Integer getValue()
        Returns the integer value representing the ToggleState value.
        Specified by:
        getValue in interface com.hp.lft.sdk.internal.EnumValueProvider<Integer>
        Returns:
        the integer value representing the ToggleState value.