# RadioButtonHandle

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

```java
interface RadioButtonHandle extends FormComponentHandle
```

Handle for the "Single radio button" form component. The Swing widget is one `JRadioButton`
in a group of single-radio form components sharing the same variable name.

Reach this handle via [`ScreenHandle.radioButton`](../ui/ScreenHandle.md#radiobutton).

## Inherited from

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

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`isSelected()`](#isselected) | `boolean` | Whether this radio button is currently selected. |
| [`select()`](#select) | `RadioButtonHandle` | Select this radio button. |
| [`assertSelected()`](#assertselected) | `RadioButtonHandle` | Assert that this radio button is currently selected. |
| [`assertNotSelected()`](#assertnotselected) | `RadioButtonHandle` | Assert that this radio button is not currently selected. |
| [`assertEnabled()`](#assertenabled) | `RadioButtonHandle` |  |
| [`assertDisabled()`](#assertdisabled) | `RadioButtonHandle` |  |
| [`assertVisible()`](#assertvisible) | `RadioButtonHandle` |  |
| [`assertInvisible()`](#assertinvisible) | `RadioButtonHandle` |  |

### isSelected()

```java
boolean isSelected()
```

Whether this radio button is currently selected.

### select()

```java
RadioButtonHandle select()
```

Select this radio button.

### assertSelected()

```java
RadioButtonHandle assertSelected()
```

Assert that this radio button is currently selected.

### assertNotSelected()

```java
RadioButtonHandle assertNotSelected()
```

Assert that this radio button is not currently selected.

### assertEnabled()

```java
RadioButtonHandle assertEnabled()
```

### assertDisabled()

```java
RadioButtonHandle assertDisabled()
```

### assertVisible()

```java
RadioButtonHandle assertVisible()
```

### assertInvisible()

```java
RadioButtonHandle assertInvisible()
```

