ButtonHandle (install4j API)
Description: declaration: package: com.install4j.api.test.formcomponents, interface: ButtonHandle

# Interface ButtonHandle

All Superinterfaces:
  `FormComponentHandle`

public interface ButtonHandle extends FormComponentHandle
Handle for the "Button" form component. The Swing widget is a `JButton`.

Reach this handle via `ScreenHandle.button()`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ButtonHandle`
  `assertDisabled()`
  `ButtonHandle`
  `assertEnabled()`
  `ButtonHandle`
  `assertInvisible()`
  `ButtonHandle`
  `assertVisible()`
  `ButtonHandle`
  `click()`
  Click the button.
  `String`
  `getText()`
  The button's label text.

  ### Methods inherited from interface FormComponentHandle

  `getId, isEnabled, isVisible`

- ## Method Details

  - ### getText

    @NotNull String getText()
    The button's label text.

  - ### click

    @NotNull ButtonHandle click()
    Click the button.

  - ### assertEnabled

    @NotNull ButtonHandle assertEnabled()
    Specified by:
      `assertEnabled` in interface `FormComponentHandle`

  - ### assertDisabled

    @NotNull ButtonHandle assertDisabled()
    Specified by:
      `assertDisabled` in interface `FormComponentHandle`

  - ### assertVisible

    @NotNull ButtonHandle assertVisible()
    Specified by:
      `assertVisible` in interface `FormComponentHandle`

  - ### assertInvisible

    @NotNull ButtonHandle assertInvisible()
    Specified by:
      `assertInvisible` in interface `FormComponentHandle`