# HyperlinkLabelHandle

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

```java
interface HyperlinkLabelHandle extends FormComponentHandle
```

Handle for the "Hyperlink URL label" form component. The Swing widget is a
`HyperlinkLabel` that opens a URL in the user's browser when clicked.

**Note:** [`HyperlinkLabelHandle.click`](HyperlinkLabelHandle.md#click) would launch a real browser via `Util.openURL`.

Reach this handle via [`ScreenHandle.hyperlinkLabel`](../ui/ScreenHandle.md#hyperlinklabel).

## Inherited from

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

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`getText()`](#gettext) | `String` | The hyperlink's display text. |
| [`getUrl()`](#geturl) | `String` | The configured URL string with variable substitution applied. |
| [`click()`](#click) | `HyperlinkLabelHandle` | Trigger the configured action and open the URL in the user's browser. |
| [`assertEnabled()`](#assertenabled) | `HyperlinkLabelHandle` |  |
| [`assertDisabled()`](#assertdisabled) | `HyperlinkLabelHandle` |  |
| [`assertVisible()`](#assertvisible) | `HyperlinkLabelHandle` |  |
| [`assertInvisible()`](#assertinvisible) | `HyperlinkLabelHandle` |  |

### getText()

```java
String getText()
```

The hyperlink's display text.

### getUrl()

```java
String getUrl()
```

The configured URL string with variable substitution applied.

### click()

```java
HyperlinkLabelHandle click()
```

Trigger the configured action and open the URL in the user's browser.

### assertEnabled()

```java
HyperlinkLabelHandle assertEnabled()
```

### assertDisabled()

```java
HyperlinkLabelHandle assertDisabled()
```

### assertVisible()

```java
HyperlinkLabelHandle assertVisible()
```

### assertInvisible()

```java
HyperlinkLabelHandle assertInvisible()
```

