File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737```` markdown
3838## 浏览器测试(vite-plugin-pilot)
3939
40- 已安装。` npx pilot run '代码' ` 执行 JS(返回结果+日志+快照)、` npx pilot page ` 页面状态、` npx pilot help ` 辅助函数列表。
40+ 已安装。` npx pilot run '代码' ` 执行 JS(返回结果+日志+快照)、` npx pilot page ` 页面状态
41+ ` npx pilot help ` 查看pilot所有功能
4142常用:` __pilot_clickByText("文本") ` 点击、` __pilot_typeByPlaceholder("提示文字", "值") ` 输入、` __pilot_waitFor("文本") ` 等待、` __pilot_findByText("文本") ` 查找。snapshot 中 ` #N ` 是元素索引。
43+ 多 tab 时用 ` npx pilot status ` 查看实例列表,` npx pilot run '代码' instance:前缀 ` 指定目标实例(支持 ID 前缀模糊匹配)。
4244````
4345
4446** 重要** :不要删除或覆盖文件中的已有内容,只追加。
Original file line number Diff line number Diff line change 11{
22 "name" : " vite-plugin-pilot" ,
3- "version" : " 1.0.14 " ,
3+ "version" : " 1.0.15 " ,
44 "description" : " AI Agent 驾驶浏览器的导航工具 — 打通 浏览器运行时 → Dev Server → 源码 → IDE 的完整链路" ,
55 "type" : " module" ,
66 "bin" : {
You can’t perform that action at this time.
0 commit comments