# FormComponentHandle

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

```java
interface FormComponentHandle
```

Root of the install4j form-component handle hierarchy. Every typed `form...` accessor
on [`ScreenHandle`](../ui/ScreenHandle.md) returns a subtype of this.

Reach this handle via [`ScreenHandle.formComponent`](../ui/ScreenHandle.md#formcomponent-string).

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`getId()`](#getid) | `String` | The install4j form-component id (the id set in the IDE on the form component). |
| [`isEnabled()`](#isenabled) | `boolean` |  |
| [`isVisible()`](#isvisible) | `boolean` |  |
| [`assertEnabled()`](#assertenabled) | `FormComponentHandle` |  |
| [`assertDisabled()`](#assertdisabled) | `FormComponentHandle` |  |
| [`assertVisible()`](#assertvisible) | `FormComponentHandle` |  |
| [`assertInvisible()`](#assertinvisible) | `FormComponentHandle` |  |

### getId()

```java
String getId()
```

The install4j form-component id (the id set in the IDE on the form component).

### isEnabled()

```java
boolean isEnabled()
```

### isVisible()

```java
boolean isVisible()
```

### assertEnabled()

```java
FormComponentHandle assertEnabled()
```

### assertDisabled()

```java
FormComponentHandle assertDisabled()
```

### assertVisible()

```java
FormComponentHandle assertVisible()
```

### assertInvisible()

```java
FormComponentHandle assertInvisible()
```

