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

# Interface HtmlDisplayHandle

All Superinterfaces:
  `FormComponentHandle`

public interface HtmlDisplayHandle extends FormComponentHandle
Handle for the "HTML or text display" form component. The Swing widget is a read-only `JTextPane` inside a scrollable composite.

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

- ## Method Summary

  Modifier and Type
  Method
  Description
  `HtmlDisplayHandle`
  `assertDisabled()`
  `HtmlDisplayHandle`
  `assertEnabled()`
  `HtmlDisplayHandle`
  `assertInvisible()`
  `HtmlDisplayHandle`
  `assertTextContains(String substring)`
  Assert that the displayed text contains the given substring.
  `HtmlDisplayHandle`
  `assertVisible()`
  `String`
  `getText()`
  The displayed text with HTML markup stripped.

  ### Methods inherited from interface FormComponentHandle

  `getId, isEnabled, isVisible`

- ## Method Details

  - ### getText

    @NotNull String getText()
    The displayed text with HTML markup stripped.

  - ### assertTextContains

    @NotNull HtmlDisplayHandle assertTextContains(@NotNull String substring)
    Assert that the displayed text contains the given substring.

  - ### assertEnabled

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

  - ### assertDisabled

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

  - ### assertVisible

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

  - ### assertInvisible

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