Electron 服务
用于测试 Electron 应用程序的 WebdriverIO 服务
通过丰富的 WebdriverIO 生态系统实现跨平台 Electron 应用 E2E 测试。
特性
通过以下方式使 Electron 应用程序测试变得更加简单:
- 🚗 自动设置所需的 Chromedriver(适用于 Electron v26 及以上版本)
- 📦 自动检测 Electron 应用程序路径
- 支持 Electron Forge、Electron Builder 和未打包的应用
- 🧩 在测试中访问 Electron API
- 🕵️ 通过类似 Vitest 的 API 模拟 Electron API
安装
您需要安装 WebdriverIO
,安装指南可以在这里找到。
快速开始
快速上手的推荐方式是使用 WDIO 配置向导。