@wdio/mcp 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/lib/server.js +332 -30
- package/lib/server.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -85,6 +85,7 @@ appium
|
|
|
85
85
|
- **Scrolling**: Smooth scrolling with configurable distances
|
|
86
86
|
- **Attach to running Chrome**: Connect to an existing Chrome window via `--remote-debugging-port` — ideal for testing authenticated or pre-configured sessions
|
|
87
87
|
- **Device emulation**: Apply mobile/tablet presets (iPhone 15, Pixel 7, etc.) to simulate responsive layouts without a physical device
|
|
88
|
+
- **Session Recording**: All tool calls are automatically recorded and exportable as runnable WebdriverIO JS
|
|
88
89
|
|
|
89
90
|
### Mobile App Automation (iOS/Android)
|
|
90
91
|
|
|
@@ -458,6 +459,16 @@ This eliminates the need to manually handle permission popups during automated t
|
|
|
458
459
|
- **Data Format:** TOON (Token-Oriented Object Notation) for efficient LLM communication
|
|
459
460
|
- **Element Detection:** XML-based page source parsing with intelligent filtering and multi-strategy locator generation
|
|
460
461
|
|
|
462
|
+
### Session Recording & Code Export
|
|
463
|
+
|
|
464
|
+
Every tool call is automatically recorded to a session history. You can inspect sessions and export runnable code via MCP resources — no extra tool calls needed:
|
|
465
|
+
|
|
466
|
+
- `wdio://sessions` — lists all recorded sessions with type, timestamps, and step count
|
|
467
|
+
- `wdio://session/current/steps` — step log for the active session, plus a generated WebdriverIO JS script ready to run with `webdriverio`
|
|
468
|
+
- `wdio://session/{sessionId}/steps` — same for any past session by ID
|
|
469
|
+
|
|
470
|
+
The generated script reconstructs the full session — including capabilities, navigation, clicks, and inputs — as a standalone `import { remote } from 'webdriverio'` file.
|
|
471
|
+
|
|
461
472
|
## Troubleshooting
|
|
462
473
|
|
|
463
474
|
**Browser automation not working?**
|