# HtmlDisplayHandle

Import: `import com.install4j.api.test.formcomponents.HtmlDisplayHandle;`

```java
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`](../ui/ScreenHandle.md#htmldisplay).

## Inherited from

- [FormComponentHandle](FormComponentHandle.md) — 7 methods

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`getText()`](#gettext) | `String` | The displayed text with HTML markup stripped. |
| [`assertTextContains(String)`](#asserttextcontains-string) | `HtmlDisplayHandle` | Assert that the displayed text contains the given substring. |
| [`assertEnabled()`](#assertenabled) | `HtmlDisplayHandle` |  |
| [`assertDisabled()`](#assertdisabled) | `HtmlDisplayHandle` |  |
| [`assertVisible()`](#assertvisible) | `HtmlDisplayHandle` |  |
| [`assertInvisible()`](#assertinvisible) | `HtmlDisplayHandle` |  |

### getText()

```java
String getText()
```

The displayed text with HTML markup stripped.

### assertTextContains(String)

```java
HtmlDisplayHandle assertTextContains(String substring)
```

Assert that the displayed text contains the given substring.

### assertEnabled()

```java
HtmlDisplayHandle assertEnabled()
```

### assertDisabled()

```java
HtmlDisplayHandle assertDisabled()
```

### assertVisible()

```java
HtmlDisplayHandle assertVisible()
```

### assertInvisible()

```java
HtmlDisplayHandle assertInvisible()
```

