# TextAreaHandle

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

```java
interface TextAreaHandle extends FormComponentHandle
```

Handle for the "Text area" form component. The Swing widget is a multi-line `JTextArea`.

Reach this handle via [`ScreenHandle.textArea`](../ui/ScreenHandle.md#textarea).

## Inherited from

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

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`getText()`](#gettext) | `String` | The current text in the area. |
| [`setText(String)`](#settext-string) | `TextAreaHandle` | Replace the area's text. |
| [`clear()`](#clear) | `TextAreaHandle` | Clear the area. |
| [`assertText(String)`](#asserttext-string) | `TextAreaHandle` | Assert the current text equals the expected value. |
| [`assertEnabled()`](#assertenabled) | `TextAreaHandle` |  |
| [`assertDisabled()`](#assertdisabled) | `TextAreaHandle` |  |
| [`assertVisible()`](#assertvisible) | `TextAreaHandle` |  |
| [`assertInvisible()`](#assertinvisible) | `TextAreaHandle` |  |

### getText()

```java
String getText()
```

The current text in the area.

### setText(String)

```java
TextAreaHandle setText(String text)
```

Replace the area's text.

### clear()

```java
TextAreaHandle clear()
```

Clear the area.

### assertText(String)

```java
TextAreaHandle assertText(String expected)
```

Assert the current text equals the expected value.

### assertEnabled()

```java
TextAreaHandle assertEnabled()
```

### assertDisabled()

```java
TextAreaHandle assertDisabled()
```

### assertVisible()

```java
TextAreaHandle assertVisible()
```

### assertInvisible()

```java
TextAreaHandle assertInvisible()
```

