> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class: StepDriver<Step>

> Reference for the StepDriver class in bijection/browser.

[browser](/api/modules/browser).StepDriver

## Type parameters

| Name |
| :- |
| `Step` |

## Constructors

### constructor

• **new StepDriver**\<`Step`>(`key`, `send`)

#### Type parameters

| Name |
| :- |
| `Step` |

#### Parameters

| Name | Type |
| :- | :- |
| `key` | (`step`: `Step`) => `string` |
| `send` | (`step`: `Step`) => `Promise`\<`unknown`> |

## Methods

### snapshot

▸ **snapshot**(): [`StepDriverState`](/api/modules/browser#stepdriverstate)

#### Returns

[`StepDriverState`](/api/modules/browser#stepdriverstate)

***

### subscribe

▸ **subscribe**(`listener`): () => `void`

#### Parameters

| Name | Type |
| :- | :- |
| `listener` | () => `void` |

#### Returns

`fn`

▸ (): `void`

##### Returns

`void`

***

### feed

▸ **feed**(`step`, `enabled?`): `void`

#### Parameters

| Name | Type | Default value |
| :- | :- | :- |
| `step` | `undefined` \| `null` \| `Step` | `undefined` |
| `enabled` | `boolean` | `true` |

#### Returns

`void`

***

### retry

▸ **retry**(): `void`

#### Returns

`void`

***

### close

▸ **close**(): `void`

#### Returns

`void`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.