快速入门
1. 启动编辑器
2. 创建第一个场景
- 在工具栏中输入场景名称
- 从节点面板(左侧)将节点拖入步骤区域,或双击以追加节点
- 选择步骤,在中央面板中编辑其属性
- 按保存(Cmd+S)将 YAML 文件写入磁盘
- 按运行(F5)执行场景
3. 直接编写 YAML
robost 场景是纯 YAML 文件。创建 hello.yaml:
运行它:
4. 使用变量
name: with_variables
variables:
target_app: "Notepad"
steps:
- wait_window:
title_contains: "{{ target_app }}"
timeout_ms: 10000
- type: "Automated by robost"
5. 采集模板图像
- 打开目标应用程序
- 从托盘启动
robost-snip,或运行cargo run -p robost-snip - 按 Ctrl+Shift+C 冻结屏幕
- 框选目标 UI 元素的矩形区域
- 模板 PNG 将保存到项目文件夹