testdrivereventslisted
Install: claude install-skill testdriverai/testdriverai
<!-- Generated from events.mdx. DO NOT EDIT. -->
## Overview
TestDriver uses [EventEmitter2](https://github.com/EventEmitter2/EventEmitter2) for its event system. Events use a colon-delimited namespace pattern and support wildcard listeners.
Access the emitter through `testdriver.emitter`:
```javascript
testdriver.emitter.on('command:start', (data) => {
console.log(`Running: ${data.command}`);
});
```
### Configuration
The internal emitter is created with:
```javascript
new EventEmitter2({
wildcard: true,
delimiter: ':',
maxListeners: 20,
verboseMemoryLeak: false,
ignoreErrors: false,
});
```
### Wildcard Listeners
Use `*` to match a single level or `**` to match multiple levels:
```javascript
// Match all log events
testdriver.emitter.on('log:*', (message) => {
console.log(message);
});
// Match all events in any namespace
testdriver.emitter.on('**', (...args) => {
console.log('Event:', this.event, args);
});
```
## Event Reference
### Command Events
Emitted during the execution of SDK commands (`click`, `type`, `find`, etc.).
| Event | Payload |
|---|---|
| `command:start` | `{ command, depth, data, timestamp, sourcePosition }` |
| `command:success` | `{ command, depth, data, duration, response, timestamp, sourcePosition }` |
| `command:error` | `{ command, depth, data, error, duration, timestamp, sourcePosition }` |
| `command:status` | `{ command, status: "executing", data, depth, timestamp }` |
| `command:progress` | `{ command, status: "co