---
url: /zh/advanced/bdd-style-scripts-with-gherkin.md
---
> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.
# BDD 风格脚本(Gherkin)
> 此特性从 Midscene 1.10 开始支持。
>
> BDD 相关能力仍处于 Beta 阶段,未来 API 可能发生变化。
Gherkin 是一种用纯文本描述行为示例的语法,常用于 BDD(Behavior-Driven Development,行为驱动开发)流程。一个 BDD 场景通常包含三类步骤:`Given` 描述前置条件,`When` 描述用户操作,`Then` 描述预期结果。
举例来说,当需要测试待办事项页面的新增功能时,可以把用例写成下面的 Gherkin 脚本。
```gherkin
Scenario: 添加待办事项
Given 待办事项页面已经打开
When 添加一条名为“买牛奶”的待办事项
Then 待办事项列表中应该包含“买牛奶”
```
较长的 GUI 用例也可以写在同一个 `Scenario` 中。你可以按业务阶段组织步骤,每个阶段都使用一组 `Given`、`When`、`Then`。
```gherkin
Scenario: 使用保存的地址下单
Given 购物车中已有“Midscene Mug”
When 我打开购物车页面
Then 购物车中应该显示“Midscene Mug”
And 小计金额应该可见
Given 结算页面已经打开
When 我选择已保存的收货地址
Then 收货地址区域应该显示所选地址
Given 支付区域已经可见
When 我选择已保存的信用卡并提交订单
Then 页面应该显示订单确认结果
And 确认页面应该显示订单号
```
这种写法适合一个业务 scenario 自然包含多个 UI 阶段的情况,例如购物车确认、配送地址选择、支付和最终确认。
在 AI 通过自然语言驱动 GUI 操作的场景中,Gherkin 很适合描述操作用例。它让脚本保留自然语言的可读性,同时提供稳定的步骤结构。这种结构也有助于模型生成更规范的用例。
Gherkin 的完整语法可以参考官方的 [Cucumber Gherkin reference](https://cucumber.io/docs/gherkin/reference)。
## 支持规则
Midscene 只支持 Gherkin 的一个子集。这个子集围绕单个场景(Scenario)设计,适合描述一段完整的 GUI 操作流程。
### 步骤映射
- `Given`:调用 `aiAct`,用于准备前置状态。
- `When`:调用 `aiAct`,用于执行用户操作。
- `Then`:调用 `aiAssert`,用于验证页面结果。
- `And`、`But`:沿用前一个主关键字。例如,`Then` 后面的 `And` 也会调用 `aiAssert`。
关键字匹配不区分大小写。因此,`AND`、`and` 和 `And` 都可以识别。
### 场景限制
每次只支持一个 `Scenario:`。如果输入里包含多个 `Scenario:`,Midscene 会报错。
你也可以省略 `Scenario:`,直接写步骤。
```gherkin
Given 待办事项页面已经打开
When 我添加一条名为“买牛奶”的待办事项
Then 待办事项列表中应该包含“买牛奶”
```
### 注意事项
Midscene 会把每个 Gherkin 步骤拆成一次独立的 `aiAct` 或 `aiAssert` 调用。每一步都应该写完整,明确说明操作对象、动作和预期结果。
不要在后续步骤中依赖上一条步骤里的省略信息或模糊指代。比如,不要只写“点击它”或“检查结果”,而应该写清楚要点击的对象和要检查的结果。
下面的写法无法正确执行。原因是步骤之间的上下文相互隔离,后续步骤无法知道“它”和“结果”分别指什么。
```gherkin
Given 待办事项页面已经打开
When 我添加一条名为“买牛奶”的待办事项
And 点击它
Then 检查结果
```
应该写成下面这样。
```gherkin
Given 待办事项页面已经打开
When 我添加一条名为“买牛奶”的待办事项
And 我点击“买牛奶”这条待办事项
Then “买牛奶”这条待办事项应该显示为已完成
```
### 暂不支持
下面这些 Gherkin 特性暂不支持:
- `Feature`
- `Background`
- `Scenario Outline` 或 `Scenario Template`
- `Examples`
- `Rule`
- data tables
- doc strings
- 变量替换、占位符展开或模板语法
- 在同一段输入中包含多个 `Scenario:`
Midscene 不会把 Gherkin 扩展成一种脚本语言。它只读取 `Scenario` 和步骤关键字,再把每个步骤交给 Agent 执行。
循环、条件、变量替换和批量生成等逻辑,应该在调用 Midscene 之前完成。如果需要复用模板,可以先在项目中实现一个 Gherkin 生成器。生成器输出最终的纯文本 `Scenario`,再交给 `runGherkinScenario` 执行。
## 在 JavaScript 中使用
在 JavaScript 或 TypeScript 脚本中,可以直接调用 `agent.runGherkinScenario()`。它接收一段 Gherkin 文本,并按顺序执行其中的步骤。
下面的示例使用 Playwright fixture 获取 Agent。
```ts
import { test } from '@midscene/web/playwright';
test('add a todo item', async ({ page, agentForPage }) => {
await page.goto('http://localhost:3000/todos');
const agent = await agentForPage(page);
await agent.runGherkinScenario(`
Scenario: 添加待办事项
Given 待办事项页面已经打开
When 我添加一条名为“买牛奶”的待办事项
Then 待办事项列表中应该包含“买牛奶”
And 待办事项数量应该为 1
`);
});
```
第二个参数可以传入运行选项。例如,可以为这次执行提供临时上下文。
```ts
await agent.runGherkinScenario(
`
Scenario: 添加待办事项
Given 待办事项页面已经打开
When 我添加一条名为“买牛奶”的待办事项
Then 待办事项列表中应该包含“买牛奶”
`,
{
context: '这是一个待办事项示例应用。请使用页面上的输入框和添加按钮完成操作。',
},
);
```
## 在 YAML 中使用
在 YAML flow 中使用 `runGherkinScenario` 步骤。它的值应该是一段块字符串,里面放一个 scenario。
```yaml
web:
url: http://localhost:3000/todos
tasks:
- name: Add a todo item
flow:
- runGherkinScenario: |
Scenario: 添加待办事项
Given 待办事项页面已经打开
When 我添加一条名为“买牛奶”的待办事项
Then 待办事项列表中应该包含“买牛奶”
And 待办事项数量应该为 1
```
YAML 执行时,Midscene 会按步骤运行这个 scenario。`Given` 和 `When` 步骤会调用 `aiAct`,`Then` 以及后面这个 `And` 步骤会调用 `aiAssert`。
## 备注
`runGherkinScenario` 会关闭场景内部的缓存。也就是说,`Given` 和 `When` 映射到 `aiAct` 后,不会使用 `aiAct` 的规划缓存。
这样做是为了让每个 Gherkin 步骤都基于当前页面状态重新解释,避免复用旧步骤带来的误判。
---
url: /zh/android-world-benchmark-report.md
---
> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.
# Midscene AndroidWorld Benchmark 测试报告
本文是 Midscene 针对 AndroidWorld benchmark 的测试报告。本次测试中,Midscene 取得了 **Pass\@1 93.10%**、**Pass\@2 95.69%**、**Pass\@3 97.41%** 的结果。
:::info 关于 AndroidWorld
[AndroidWorld](https://github.com/google-research/android_world) 是 Google Research 提供的 Android Agent benchmark。它运行在真实 Android 模拟器上,用 20 个真实 Android 应用中的 116 个程序化任务来评估 Agent,并由 benchmark 负责初始化任务和校验结果。
:::
## 运行配置
| 字段 | 值 |
| --------------------------------- | ------------------------------------------------------------- |
| Model Name | `Gemini-3.5-Flash` |
| Midscene version | `1.9.5` |
| DeepThink | on |
| `MIDSCENE_REPLANNING_CYCLE_LIMIT` | 120 |
| AndroidWorld 工程 | 为了降低 benchmark 过程中的偶发波动,我们对 AndroidWorld 工程做了若干稳定性修复。具体例子见下方。 |
| 验收规则 | 少量 AndroidWorld validator 按任务意图做了校准,涉及的 case 见下方列表。 |
## 稳定性提升
以下改动不改变任务意图,主要用于降低浏览器渲染、accessibility tree 刷新、任务 setup 时序等带来的偶发失败。
| 修改内容 | 涉及的 case |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| BrowserDraw 绘制后强制刷新 canvas 像素,并加粗、圆角化画笔,让目标颜色更稳定地落到最终 canvas 像素里。 | `BrowserDraw` |
| Browser task 完成后,读取 accessibility tree 中的 `Success!` 文本时增加重试,避免 stale accessibility tree 误判。 | `BrowserMaze`
`BrowserMultiply`
`BrowserDraw` |
| SMS 任务开始前会先准备好需要的短信和联系人;现在会确认这些短信能在收件箱查到、联系人能在通讯录查到,再开始让 agent 执行。 | `SimpleSmsReplyMostRecent`
`SimpleSmsSendReceivedAddress` |
| Expense 类任务启动 Pro Expense 后等待数据库表创建完成,再由 validator 写入测试数据,避免初始数据库未初始化导致失败。 | `ExpenseAddMultiple`
`ExpenseAddMultipleFromGallery`
`ExpenseAddMultipleFromMarkor`
`ExpenseAddSingle`
`ExpenseDeleteDuplicates`
`ExpenseDeleteDuplicates2`
`ExpenseDeleteMultiple`
`ExpenseDeleteMultiple2`
`ExpenseDeleteSingle` |
| OsmAnd 任务提前把离线地图文件放入应用数据目录,并等待 OsmAnd 解压内置底图,确保地图数据 ready 后再执行。 | `OsmAndFavorite`
`OsmAndMarker`
`OsmAndTrack` |
## 验证条件调整
本次 benchmark 使用的 AndroidWorld `main` 分支中,以下验证条件做过调整:
| 修改内容 | 涉及的 case |
| ---------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Calendar 的 "after start time" 验收目标改为边界点之后 1 分钟的事件,避免事件正好落在边界点时,不同模型对 `after` 是否包含边界点的理解差异影响判定。 | `SimpleCalendarFirstEventAfterStartTime` |
| Expense 从 Markor 导入时,接受 Markor note 中额外带上的 `Reimbursable.` 后缀;对比 note 文本时会忽略这个后缀及末尾句号差异。 | `ExpenseAddMultipleFromMarkor` |
| Markor 合并 notes 时,允许单换行或空行分隔,并兼容 Markor 自动补上的 `.md` 扩展名。 | `MarkorMergeNotes` |
| Recipe 的数量、时长和 ingredient count 允许省略单位,但错误数量或错误单位仍会失败。 | `RecipeAddSingleRecipe`
`RecipeAddMultipleRecipes`
`RecipeAddMultipleRecipesFromMarkor`
`RecipeAddMultipleRecipesFromMarkor2`
`RecipeAddMultipleRecipesFromImage`
`NotesRecipeIngredientCount` |
| 最小亮度按 Android 实际 setting 值 `0` 验证,而不是旧的 `1`。 | `SystemBrightnessMin`
`SystemBrightnessMinVerify` |
## 报告文件
详细的报告如下,供大家参考。
Round 1(115 份报告 · 108 PASS · 7 FAIL)
| # | 任务 | 状态 | 报告 |
| --- | ------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1 | AudioRecorderRecordAudio | PASS | 报告 |
| 2 | AudioRecorderRecordAudioWithFileName | PASS | 报告 |
| 3 | BrowserDraw | PASS | 报告 |
| 4 | BrowserMaze | PASS | 报告 |
| 5 | BrowserMultiply | PASS | 报告 |
| 6 | CameraTakePhoto | PASS | 报告 |
| 7 | CameraTakeVideo | PASS | 报告 |
| 8 | ClockStopWatchPausedVerify | PASS | 报告 |
| 9 | ClockStopWatchRunning | PASS | 报告 |
| 10 | ClockTimerEntry | PASS | 报告 |
| 11 | ContactsAddContact | PASS | 报告 |
| 12 | ContactsNewContactDraft | PASS | 报告 |
| 13 | ExpenseAddMultiple | PASS | 报告 |
| 14 | ExpenseAddMultipleFromGallery | PASS | 报告 |
| 15 | ExpenseAddMultipleFromMarkor | FAIL | 报告 |
| 16 | ExpenseAddSingle | PASS | 报告 |
| 17 | ExpenseDeleteDuplicates | PASS | 报告 |
| 18 | ExpenseDeleteDuplicates2 | PASS | 报告 |
| 19 | ExpenseDeleteMultiple | PASS | 报告 |
| 20 | ExpenseDeleteMultiple2 | PASS | 报告 |
| 21 | ExpenseDeleteSingle | PASS | 报告 |
| 22 | FilesDeleteFile | PASS | 报告 |
| 23 | FilesMoveFile | PASS | 报告 |
| 24 | MarkorAddNoteHeader | PASS | 报告 |
| 25 | MarkorChangeNoteContent | PASS | 报告 |
| 26 | MarkorCreateFolder | PASS | 报告 |
| 27 | MarkorCreateNote | PASS | 报告 |
| 28 | MarkorCreateNoteAndSms | PASS | 报告 |
| 29 | MarkorCreateNoteFromClipboard | PASS | 报告 |
| 30 | MarkorDeleteAllNotes | PASS | 报告 |
| 31 | MarkorDeleteNewestNote | PASS | 报告 |
| 32 | MarkorDeleteNote | PASS | 报告 |
| 33 | MarkorEditNote | PASS | 报告 |
| 34 | MarkorMergeNotes | PASS | 报告 |
| 35 | MarkorMoveNote | PASS | 报告 |
| 36 | MarkorTranscribeReceipt | PASS | 报告 |
| 37 | MarkorTranscribeVideo | FAIL | 报告 |
| 38 | OpenAppTaskEval | PASS | 报告 |
| 39 | OsmAndFavorite | PASS | 报告 |
| 40 | OsmAndMarker | FAIL | 报告 |
| 42 | RecipeAddMultipleRecipes | PASS | 报告 |
| 43 | RecipeAddMultipleRecipesFromImage | FAIL | 报告 |
| 44 | RecipeAddMultipleRecipesFromMarkor | PASS | 报告 |
| 45 | RecipeAddMultipleRecipesFromMarkor2 | PASS | 报告 |
| 46 | RecipeAddSingleRecipe | PASS | 报告 |
| 47 | RecipeDeleteDuplicateRecipes | PASS | 报告 |
| 48 | RecipeDeleteDuplicateRecipes2 | FAIL | 报告 |
| 49 | RecipeDeleteDuplicateRecipes3 | FAIL | 报告 |
| 50 | RecipeDeleteMultipleRecipes | PASS | 报告 |
| 51 | RecipeDeleteMultipleRecipesWithConstraint | PASS | 报告 |
| 52 | RecipeDeleteMultipleRecipesWithNoise | PASS | 报告 |
| 53 | RecipeDeleteSingleRecipe | PASS | 报告 |
| 54 | RecipeDeleteSingleWithRecipeWithNoise | PASS | 报告 |
| 55 | RetroCreatePlaylist | PASS | 报告 |
| 56 | RetroPlayingQueue | PASS | 报告 |
| 57 | RetroPlaylistDuration | PASS | 报告 |
| 58 | RetroSavePlaylist | PASS | 报告 |
| 59 | SaveCopyOfReceiptTaskEval | PASS | 报告 |
| 60 | SimpleCalendarAddOneEvent | PASS | 报告 |
| 61 | SimpleCalendarAddOneEventInTwoWeeks | PASS | 报告 |
| 62 | SimpleCalendarAddOneEventRelativeDay | PASS | 报告 |
| 63 | SimpleCalendarAddOneEventTomorrow | PASS | 报告 |
| 64 | SimpleCalendarAddRepeatingEvent | PASS | 报告 |
| 65 | SimpleCalendarDeleteEvents | PASS | 报告 |
| 66 | SimpleCalendarDeleteEventsOnRelativeDay | PASS | 报告 |
| 67 | SimpleCalendarDeleteOneEvent | PASS | 报告 |
| 68 | SimpleDrawProCreateDrawing | PASS | 报告 |
| 69 | SimpleSmsReply | PASS | 报告 |
| 70 | SimpleSmsReplyMostRecent | PASS | 报告 |
| 71 | SimpleSmsResend | PASS | 报告 |
| 72 | SimpleSmsSend | PASS | 报告 |
| 73 | SimpleSmsSendClipboardContent | PASS | 报告 |
| 74 | SimpleSmsSendReceivedAddress | PASS | 报告 |
| 75 | SystemBluetoothTurnOff | PASS | 报告 |
| 76 | SystemBluetoothTurnOffVerify | PASS | 报告 |
| 77 | SystemBluetoothTurnOn | PASS | 报告 |
| 78 | SystemBluetoothTurnOnVerify | PASS | 报告 |
| 79 | SystemBrightnessMax | PASS | 报告 |
| 80 | SystemBrightnessMaxVerify | PASS | 报告 |
| 81 | SystemBrightnessMin | PASS | 报告 |
| 82 | SystemBrightnessMinVerify | PASS | 报告 |
| 83 | SystemCopyToClipboard | FAIL | 报告 |
| 84 | SystemWifiTurnOff | PASS | 报告 |
| 85 | SystemWifiTurnOffVerify | PASS | 报告 |
| 86 | SystemWifiTurnOn | PASS | 报告 |
| 87 | SystemWifiTurnOnVerify | PASS | 报告 |
| 88 | TurnOffWifiAndTurnOnBluetooth | PASS | 报告 |
| 89 | TurnOnWifiAndOpenApp | PASS | 报告 |
| 90 | VlcCreatePlaylist | PASS | 报告 |
| 91 | VlcCreateTwoPlaylists | PASS | 报告 |
| 92 | NotesIsTodo | PASS | 报告 |
| 93 | NotesMeetingAttendeeCount | PASS | 报告 |
| 94 | NotesRecipeIngredientCount | PASS | 报告 |
| 95 | NotesTodoItemCount | PASS | 报告 |
| 96 | SimpleCalendarAnyEventsOnDate | PASS | 报告 |
| 97 | SimpleCalendarEventOnDateAtTime | PASS | 报告 |
| 98 | SimpleCalendarEventsInNextWeek | PASS | 报告 |
| 99 | SimpleCalendarEventsInTimeRange | PASS | 报告 |
| 100 | SimpleCalendarEventsOnDate | PASS | 报告 |
| 101 | SimpleCalendarFirstEventAfterStartTime | PASS | 报告 |
| 102 | SimpleCalendarLocationOfEvent | PASS | 报告 |
| 103 | SimpleCalendarNextEvent | PASS | 报告 |
| 104 | SimpleCalendarNextMeetingWithPerson | PASS | 报告 |
| 105 | SportsTrackerActivitiesCountForWeek | PASS | 报告 |
| 106 | SportsTrackerActivitiesOnDate | PASS | 报告 |
| 107 | SportsTrackerActivityDuration | PASS | 报告 |
| 108 | SportsTrackerLongestDistanceActivity | PASS | 报告 |
| 109 | SportsTrackerTotalDistanceForCategoryOverInterval | PASS | 报告 |
| 110 | SportsTrackerTotalDurationForCategoryThisWeek | PASS | 报告 |
| 111 | TasksCompletedTasksForDate | PASS | 报告 |
| 112 | TasksDueNextWeek | PASS | 报告 |
| 113 | TasksDueOnDate | PASS | 报告 |
| 114 | TasksHighPriorityTasks | PASS | 报告 |
| 115 | TasksHighPriorityTasksDueOnDate | PASS | 报告 |
| 116 | TasksIncompleteTasksOnDate | PASS | 报告 |
Round 2(7 份报告 · 3 PASS · 4 FAIL)
| # | 任务 | 状态 | 报告 |
| -- | --------------------------------- | -------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 37 | MarkorTranscribeVideo | FAIL | 报告 |
| 40 | OsmAndMarker | FAIL | 报告 |
| 41 | OsmAndTrack | PASS | 报告 |
| 43 | RecipeAddMultipleRecipesFromImage | PASS | 报告 |
| 48 | RecipeDeleteDuplicateRecipes2 | FAIL | 报告 |
| 49 | RecipeDeleteDuplicateRecipes3 | FAIL | 报告 |
| 83 | SystemCopyToClipboard | PASS | 报告 |
Round 3(5 份报告 · 2 PASS · 3 FAIL)
| # | 任务 | 状态 | 报告 |
| -- | ----------------------------- | -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 15 | ExpenseAddMultipleFromMarkor | PASS | 报告 |
| 37 | MarkorTranscribeVideo | FAIL | 报告 |
| 40 | OsmAndMarker | PASS | 报告 |
| 48 | RecipeDeleteDuplicateRecipes2 | FAIL | 报告 |
| 49 | RecipeDeleteDuplicateRecipes3 | FAIL | 报告 |
---
url: /zh/app-control-bench-report.md
---
> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.
# Midscene AppControlBench Benchmark 测试报告
本文是 Midscene 针对 AppControlBench benchmark 的测试报告。本次测试中,每个模型均覆盖同一批 60 个任务,Midscene 取得了如下成绩:
| 模型 | Completion | Time / run | Cost / run | Task outcomes |
| --- | --- | --- | --- | --- |
| Doubao Seed 2.1 Turbo | 98% | 52s | $0.0099/¥0.0670 | Pass@1: 96.67% · Pass: 58 · Partial: 1 · Fail: 1 |
| Qwen3.7 Plus | 97% | 54s | $0.0097/¥0.0657 | Pass@1: 93.33% · Pass: 56 · Partial: 4 · Fail: 0 |
| DeepSeek V4 Flash Vision Exp | 90% | 1m 26s | $0.0045/¥0.0308 | Pass@1: 86.67% · Pass: 52 · Partial: 4 · Fail: 4 |
> 注:Doubao Seed 2.1 Turbo 使用[火山引擎官方价格](https://ark.volcengine.com/region:cn-beijing/model/detail?name=doubao-seed-2-1-turbo)计算成本:推理输入 ¥3 / 百万 tokens、缓存命中 ¥0.6 / 百万 tokens、推理输出 ¥15 / 百万 tokens。其他模型成本按 OpenRouter 价格计算,美元按 ¥6.8 / $1 换算。
**可以发现,Midscene + GUI 视觉的路线在成本、通过率上都有很强的竞争力。**


:::info 关于 AppControlBench
[AppControlBench](https://github.com/software-mansion/app-control-bench) 用于评估 Agent 操作真实 iOS 应用的能力。每个任务都在隔离的 Simulator 中运行;任务结束后,根据任务专属的目标界面描述对最终截图进行评分。每组运行包含 30 个 Bluesky 任务和 30 个 Element iOS 任务。
:::
## 运行配置
| 字段 | 值 |
| ------------------ | -------------------------------------------------------------------------------------------- |
| 测试日期 | 2026-08-25 至 2026-08-27 |
| Model Name | Doubao Seed 2.1 Turbo、Qwen3.7 Plus、DeepSeek V4 Flash Vision Exp |
| Midscene 版本 | `1.12.0` |
| DeepThink | 关闭 |
| Device | iOS Simulator |
| Bluesky 版本 | `1.122.0` |
| Element iOS 版本 | `1.11.40` |
| 任务数 | 每个模型 60 个 |
| AppControlBench 工程 | Midscene 适配层把 Agent 执行委托给 `@midscene/ios`;AppControlBench 继续负责任务重置、Simulator 生命周期、最终截图采集和评分。 |
| 验收规则 | 沿用原有目标状态和 judge 规则;对 1 个 case 的操作意图进行校准。 |
## Case 意图校准
本次评测针对固定版本 Element iOS 的实际界面,对 1 个 case 的操作路径描述进行了校准。校准只消除旧版或不存在的 UI 入口描述,不改变 case 的最终目标状态和 judge 规则。
| Case | Before | After | 变更理由 |
| ------------ | ----------------------------------------------------------------------------------------- | ---------------------------------------------------- | -------------------------------------------------------------- |
| `element-07` | Open the "Project Phoenix" room and open its room-options menu (the '...' in the header). | Open the "Project Phoenix" room info/options screen. | 固定版本 Element iOS 不存在 header `...` 入口;仅校准操作路径,目标状态和 judge 规则不变。 |
## 报告文件
Doubao Seed 2.1 Turbo · Pass@1 96.67% · 58 PASS · 1 PARTIAL · 1 FAIL
| # | 任务 | 状态 | 模型成本 | 报告 |
| --- | --- | --- | --- | --- |
| 1 | bsky-01 | PASS | $0.0038/¥0.0259 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-1-bsky-01__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 2 | bsky-02 | PASS | $0.0038/¥0.0259 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-2-bsky-02__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 3 | bsky-03 | PASS | $0.0079/¥0.0537 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-3-bsky-03__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 4 | bsky-04 | PASS | $0.0060/¥0.0405 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-4-bsky-04__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 5 | bsky-05 | PASS | $0.0039/¥0.0263 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-5-bsky-05__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 6 | bsky-06 | PASS | $0.0040/¥0.0272 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-6-bsky-06__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 7 | bsky-07 | PASS | $0.0039/¥0.0268 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-7-bsky-07__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 8 | bsky-08 | PASS | $0.0130/¥0.0884 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-8-bsky-08__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 9 | bsky-09 | PASS | $0.0081/¥0.0552 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-9-bsky-09__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 10 | bsky-10 | PASS | $0.0060/¥0.0410 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-10-bsky-10__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 11 | bsky-11 | PASS | $0.0038/¥0.0256 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-11-bsky-11__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 12 | bsky-12 | PASS | $0.0038/¥0.0258 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-12-bsky-12__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 13 | bsky-13 | PASS | $0.0038/¥0.0259 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-13-bsky-13__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 14 | bsky-14 | PASS | $0.0104/¥0.0704 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-14-bsky-14__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 15 | bsky-15 | PASS | $0.0104/¥0.0706 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-15-bsky-15__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 16 | bsky-16 | PASS | $0.0240/¥0.1631 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-16-bsky-16__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 17 | bsky-17 | PASS | $0.0059/¥0.0399 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-17-bsky-17__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 18 | bsky-18 | PASS | $0.0038/¥0.0255 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-18-bsky-18__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 19 | bsky-19 | PASS | $0.0080/¥0.0545 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-19-bsky-19__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 20 | bsky-20 | PASS | $0.0080/¥0.0547 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-20-bsky-20__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 21 | bsky-21 | PASS | $0.0059/¥0.0399 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-21-bsky-21__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 22 | bsky-22 | PASS | $0.0037/¥0.0254 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-22-bsky-22__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 23 | bsky-23 | PASS | $0.0058/¥0.0394 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-23-bsky-23__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 24 | bsky-24 | PASS | $0.0082/¥0.0554 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-24-bsky-24__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 25 | bsky-25 | FAIL | $0.0079/¥0.0535 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-25-bsky-25__group-0-39e22f33-4039-4891-854c-009333ade66f-Fail.html) |
| 26 | bsky-26 | PASS | $0.0152/¥0.1030 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-26-bsky-26__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 27 | bsky-27 | PASS | $0.0174/¥0.1183 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-27-bsky-27__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 28 | bsky-28 | PASS | $0.0080/¥0.0542 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-28-bsky-28__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 29 | bsky-29 | PASS | $0.0080/¥0.0541 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-29-bsky-29__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 30 | bsky-30 | PASS | $0.0106/¥0.0723 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-30-bsky-30__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 31 | element-01 | PASS | $0.0037/¥0.0252 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-31-element-01__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 32 | element-02 | PASS | $0.0038/¥0.0259 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-32-element-02__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 33 | element-03 | PASS | $0.0101/¥0.0686 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-33-element-03__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 34 | element-04 | PASS | $0.0057/¥0.0390 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-34-element-04__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 35 | element-05 | PASS | $0.0066/¥0.0447 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-35-element-05__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 36 | element-06 | PARTIAL | $0.0988/¥0.6720 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-36-element-06__group-0-39e22f33-4039-4891-854c-009333ade66f-Partial.html) |
| 37 | element-07 | PASS | $0.0059/¥0.0400 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-37-element-07__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 38 | element-08 | PASS | $0.0103/¥0.0700 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-38-element-08__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 39 | element-09 | PASS | $0.0040/¥0.0275 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-39-element-09__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 40 | element-10 | PASS | $0.0187/¥0.1272 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-40-element-10__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 41 | element-11 | PASS | $0.0068/¥0.0460 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-41-element-11__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 42 | element-12 | PASS | $0.0059/¥0.0404 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-42-element-12__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 43 | element-13 | PASS | $0.0106/¥0.0724 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-43-element-13__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 44 | element-14 | PASS | $0.0060/¥0.0410 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-44-element-14__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 45 | element-15 | PASS | $0.0081/¥0.0554 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-45-element-15__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 46 | element-16 | PASS | $0.0083/¥0.0567 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-46-element-16__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 47 | element-17 | PASS | $0.0080/¥0.0543 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-47-element-17__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 48 | element-18 | PASS | $0.0105/¥0.0714 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-48-element-18__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 49 | element-19 | PASS | $0.0182/¥0.1240 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-49-element-19__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 50 | element-20 | PASS | $0.0038/¥0.0256 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-50-element-20__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 51 | element-21 | PASS | $0.0119/¥0.0810 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-51-element-21__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 52 | element-22 | PASS | $0.0156/¥0.1062 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-52-element-22__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 53 | element-23 | PASS | $0.0081/¥0.0550 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-53-element-23__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 54 | element-24 | PASS | $0.0129/¥0.0880 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-54-element-24__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 55 | element-25 | PASS | $0.0059/¥0.0404 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-55-element-25__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 56 | element-26 | PASS | $0.0038/¥0.0257 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-56-element-26__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 57 | element-27 | PASS | $0.0160/¥0.1087 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-57-element-27__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 58 | element-28 | PASS | $0.0100/¥0.0683 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-58-element-28__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 59 | element-29 | PASS | $0.0102/¥0.0693 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-59-element-29__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
| 60 | element-30 | PASS | $0.0100/¥0.0680 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/doubao-20260825/Task-60-element-30__group-0-39e22f33-4039-4891-854c-009333ade66f-Pass.html) |
Qwen3.7 Plus · Pass@1 93.33% · 56 PASS · 4 PARTIAL · 0 FAIL
| # | 任务 | 状态 | 模型成本 | 报告 |
| --- | --- | --- | --- | --- |
| 1 | bsky-01 | PASS | $0.0073/¥0.0497 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-1-bsky-01__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 2 | bsky-02 | PASS | $0.0074/¥0.0501 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-2-bsky-02__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 3 | bsky-03 | PASS | $0.0108/¥0.0736 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-3-bsky-03__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 4 | bsky-04 | PASS | $0.0092/¥0.0624 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-4-bsky-04__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 5 | bsky-05 | PASS | $0.0053/¥0.0362 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-5-bsky-05__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 6 | bsky-06 | PASS | $0.0075/¥0.0507 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-6-bsky-06__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 7 | bsky-07 | PASS | $0.0075/¥0.0507 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-7-bsky-07__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 8 | bsky-08 | PASS | $0.0170/¥0.1155 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-8-bsky-08__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 9 | bsky-09 | PASS | $0.0110/¥0.0746 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-9-bsky-09__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 10 | bsky-10 | PASS | $0.0111/¥0.0756 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-10-bsky-10__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 11 | bsky-11 | PASS | $0.0053/¥0.0360 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-11-bsky-11__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 12 | bsky-12 | PASS | $0.0053/¥0.0357 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-12-bsky-12__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 13 | bsky-13 | PASS | $0.0054/¥0.0365 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-13-bsky-13__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 14 | bsky-14 | PASS | $0.0086/¥0.0585 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-14-bsky-14__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 15 | bsky-15 | PASS | $0.0107/¥0.0724 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-15-bsky-15__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 16 | bsky-16 | PARTIAL | $0.0196/¥0.1332 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-16-bsky-16__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Partial.html) |
| 17 | bsky-17 | PASS | $0.0050/¥0.0342 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-17-bsky-17__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 18 | bsky-18 | PASS | $0.0033/¥0.0224 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-18-bsky-18__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 19 | bsky-19 | PASS | $0.0067/¥0.0457 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-19-bsky-19__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 20 | bsky-20 | PASS | $0.0068/¥0.0460 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-20-bsky-20__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 21 | bsky-21 | PASS | $0.0049/¥0.0335 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-21-bsky-21__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 22 | bsky-22 | PASS | $0.0032/¥0.0219 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-22-bsky-22__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 23 | bsky-23 | PASS | $0.0050/¥0.0340 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-23-bsky-23__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 24 | bsky-24 | PASS | $0.0069/¥0.0469 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-24-bsky-24__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 25 | bsky-25 | PARTIAL | $0.0068/¥0.0463 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-25-bsky-25__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Partial.html) |
| 26 | bsky-26 | PASS | $0.0125/¥0.0849 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-26-bsky-26__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 27 | bsky-27 | PASS | $0.0145/¥0.0988 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-27-bsky-27__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 28 | bsky-28 | PASS | $0.0068/¥0.0461 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-28-bsky-28__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 29 | bsky-29 | PASS | $0.0068/¥0.0462 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-29-bsky-29__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 30 | bsky-30 | PASS | $0.0171/¥0.1160 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-30-bsky-30__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 31 | element-01 | PASS | $0.0052/¥0.0356 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-31-element-01__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 32 | element-02 | PASS | $0.0032/¥0.0214 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-32-element-02__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 33 | element-03 | PASS | $0.0087/¥0.0593 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-33-element-03__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 34 | element-04 | PASS | $0.0048/¥0.0326 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-34-element-04__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 35 | element-05 | PASS | $0.0107/¥0.0727 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-35-element-05__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 36 | element-06 | PARTIAL | $0.0640/¥0.4355 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-36-element-06__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Partial.html) |
| 37 | element-07 | PASS | $0.0088/¥0.0600 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-37-element-07__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 38 | element-08 | PASS | $0.0086/¥0.0582 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-38-element-08__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 39 | element-09 | PASS | $0.0032/¥0.0217 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-39-element-09__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 40 | element-10 | PASS | $0.0234/¥0.1593 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-40-element-10__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 41 | element-11 | PASS | $0.0050/¥0.0341 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-41-element-11__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 42 | element-12 | PASS | $0.0050/¥0.0338 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-42-element-12__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 43 | element-13 | PASS | $0.0070/¥0.0474 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-43-element-13__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 44 | element-14 | PASS | $0.0051/¥0.0345 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-44-element-14__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 45 | element-15 | PASS | $0.0068/¥0.0461 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-45-element-15__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 46 | element-16 | PARTIAL | $0.0346/¥0.2352 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-46-element-16__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Partial.html) |
| 47 | element-17 | PASS | $0.0206/¥0.1403 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-47-element-17__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 48 | element-18 | PASS | $0.0112/¥0.0761 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-48-element-18__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 49 | element-19 | PASS | $0.0108/¥0.0738 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-49-element-19__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 50 | element-20 | PASS | $0.0032/¥0.0219 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-50-element-20__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 51 | element-21 | PASS | $0.0033/¥0.0222 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-51-element-21__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 52 | element-22 | PASS | $0.0128/¥0.0872 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-52-element-22__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 53 | element-23 | PASS | $0.0069/¥0.0466 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-53-element-23__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 54 | element-24 | PASS | $0.0109/¥0.0739 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-54-element-24__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 55 | element-25 | PASS | $0.0050/¥0.0341 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-55-element-25__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 56 | element-26 | PASS | $0.0033/¥0.0224 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-56-element-26__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 57 | element-27 | PASS | $0.0051/¥0.0344 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-57-element-27__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 58 | element-28 | PASS | $0.0106/¥0.0723 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-58-element-28__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 59 | element-29 | PASS | $0.0087/¥0.0588 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-59-element-29__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
| 60 | element-30 | PASS | $0.0087/¥0.0590 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/qwen-20260825/Task-60-element-30__group-0-2f618b11-f26d-4aeb-b861-02f7ee9795fd-Pass.html) |
DeepSeek V4 Flash Vision Exp · Pass@1 86.67% · 52 PASS · 4 PARTIAL · 4 FAIL
| # | 任务 | 状态 | 模型成本 | 报告 |
| --- | --- | --- | --- | --- |
| 1 | bsky-01 | PASS | $0.0005/¥0.0035 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-1-bsky-01__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 2 | bsky-02 | PASS | $0.0005/¥0.0035 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-2-bsky-02__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 3 | bsky-03 | PASS | $0.0015/¥0.0100 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-3-bsky-03__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 4 | bsky-04 | PASS | $0.0009/¥0.0062 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-4-bsky-04__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 5 | bsky-05 | PASS | $0.0005/¥0.0037 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-5-bsky-05__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 6 | bsky-06 | PASS | $0.0021/¥0.0144 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-6-bsky-06__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 7 | bsky-07 | PASS | $0.0010/¥0.0066 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-7-bsky-07__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 8 | bsky-08 | PASS | $0.0019/¥0.0128 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-8-bsky-08__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 9 | bsky-09 | FAIL | $0.0155/¥0.1055 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-9-bsky-09__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Fail.html) |
| 10 | bsky-10 | PASS | $0.0018/¥0.0121 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-10-bsky-10__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 11 | bsky-11 | PASS | $0.0011/¥0.0077 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-11-bsky-11__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 12 | bsky-12 | PASS | $0.0011/¥0.0073 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-12-bsky-12__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 13 | bsky-13 | PASS | $0.0012/¥0.0082 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-13-bsky-13__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 14 | bsky-14 | PASS | $0.0029/¥0.0200 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-14-bsky-14__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 15 | bsky-15 | PASS | $0.0012/¥0.0081 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-15-bsky-15__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 16 | bsky-16 | PARTIAL | $0.0160/¥0.1085 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-16-bsky-16__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Partial.html) |
| 17 | bsky-17 | PASS | $0.0017/¥0.0114 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-17-bsky-17__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 18 | bsky-18 | PASS | $0.0011/¥0.0078 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-18-bsky-18__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 19 | bsky-19 | PASS | $0.0025/¥0.0168 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-19-bsky-19__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 20 | bsky-20 | PASS | $0.0022/¥0.0152 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-20-bsky-20__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 21 | bsky-21 | PASS | $0.0023/¥0.0156 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-21-bsky-21__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 22 | bsky-22 | PASS | $0.0011/¥0.0074 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-22-bsky-22__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 23 | bsky-23 | PASS | $0.0017/¥0.0119 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-23-bsky-23__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 24 | bsky-24 | PARTIAL | $0.0072/¥0.0493 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-24-bsky-24__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Partial.html) |
| 25 | bsky-25 | PASS | $0.0029/¥0.0199 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-25-bsky-25__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 26 | bsky-26 | PASS | $0.0025/¥0.0171 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-26-bsky-26__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 27 | bsky-27 | PASS | $0.0034/¥0.0231 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-27-bsky-27__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 28 | bsky-28 | PASS | $0.0023/¥0.0157 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-28-bsky-28__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 29 | bsky-29 | PASS | $0.0023/¥0.0159 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-29-bsky-29__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 30 | bsky-30 | FAIL | $0.0290/¥0.1970 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-30-bsky-30__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Fail.html) |
| 31 | element-01 | PASS | $0.0010/¥0.0069 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-31-element-01__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 32 | element-02 | PASS | $0.0010/¥0.0071 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-32-element-02__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 33 | element-03 | PASS | $0.0030/¥0.0201 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-33-element-03__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 34 | element-04 | PASS | $0.0038/¥0.0256 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-34-element-04__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 35 | element-05 | PASS | $0.0018/¥0.0122 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-35-element-05__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 36 | element-06 | FAIL | $0.0232/¥0.1575 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-36-element-06__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Fail.html) |
| 37 | element-07 | PASS | $0.0019/¥0.0127 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-37-element-07__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 38 | element-08 | PASS | $0.0028/¥0.0193 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-38-element-08__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 39 | element-09 | PASS | $0.0011/¥0.0077 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-39-element-09__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 40 | element-10 | PASS | $0.0024/¥0.0161 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-40-element-10__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 41 | element-11 | PASS | $0.0019/¥0.0131 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-41-element-11__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 42 | element-12 | PASS | $0.0019/¥0.0130 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-42-element-12__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 43 | element-13 | PASS | $0.0026/¥0.0176 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-43-element-13__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 44 | element-14 | PASS | $0.0020/¥0.0139 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-44-element-14__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 45 | element-15 | PASS | $0.0010/¥0.0067 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-45-element-15__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 46 | element-16 | PARTIAL | $0.0549/¥0.3734 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-46-element-16__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Partial.html) |
| 47 | element-17 | PASS | $0.0026/¥0.0178 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-47-element-17__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 48 | element-18 | PASS | $0.0027/¥0.0182 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-48-element-18__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 49 | element-19 | PARTIAL | $0.0106/¥0.0723 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-49-element-19__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Partial.html) |
| 50 | element-20 | PASS | $0.0011/¥0.0075 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-50-element-20__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 51 | element-21 | FAIL | $0.0236/¥0.1604 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-51-element-21__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Fail.html) |
| 52 | element-22 | PASS | $0.0024/¥0.0160 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-52-element-22__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 53 | element-23 | PASS | $0.0014/¥0.0094 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-53-element-23__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 54 | element-24 | PASS | $0.0020/¥0.0138 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-54-element-24__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 55 | element-25 | PASS | $0.0009/¥0.0059 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-55-element-25__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 56 | element-26 | PASS | $0.0006/¥0.0039 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-56-element-26__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 57 | element-27 | PASS | $0.0010/¥0.0065 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-57-element-27__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 58 | element-28 | PASS | $0.0016/¥0.0107 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-58-element-28__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 59 | element-29 | PASS | $0.0016/¥0.0107 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-59-element-29__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
| 60 | element-30 | PASS | $0.0016/¥0.0107 | [报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/benchmark/AppControlBench/deepseek-20260825/Task-60-element-30__group-0-7d8b44f7-2b52-4211-a922-746938a7509a-Pass.html) |
---
url: /zh/automate-with-scripts-in-yaml.md
---
> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.
# 使用 YAML 格式的自动化脚本
:::info 兼容保留,建议迁移到 Midscene Test
“旧版 YAML”,特指由 `@midscene/cli` 提供的 YAML 自动化协议:工作流顶层使用 `tasks`,每个 task 使用 `flow`,平台和 Agent 等运行配置通常也写在 YAML 中,并通过 `midscene` 命令或包含 `files`、`setup`、`concurrent` 等字段的 YAML 批配置运行。
旧链路已进入维护状态:继续保证现有项目兼容,并处理必要的问题,但不再新增语法、能力、配置项或 CLI 参数。已有用例、批配置、目录结构和 `midscene` 命令可以保持不变;升级后会通过共享执行内核运行,并生成新的 Test 报告页面。新项目、新增用例和后续能力建设推荐直接使用 Midscene Test。
旧文件和 YAML 批配置使用 `midscene`,原生 `cases/steps` 文件和 TypeScript 项目配置使用 `midscene-test`。两种格式可以放在同一个仓库的不同目录中,但不能在同一个文件或同一次命令中混用。先阅读 [Midscene Test 概览](/zh/midscene-test/overview.md),再按照[迁移到 Midscene Test](/zh/migrate-to-midscene-test.md)转换字段并切换命令。
:::
在大多数情况下,开发者编写自动化脚本只是为了执行一些简单流程,比如检查某些内容是否出现,或者验证某个关键用户路径是否可用。此时维护一个大型测试项目会显得毫无必要。
Midscene 提供了一种基于 `.yaml` 文件的自动化测试方法,这有助于你专注于编写流程,而不是测试框架。
这里有一个示例,通过阅读它的内容,你应该已经理解了它的工作原理。
```yaml
page:
url: https://www.bing.com
tasks:
- name: 搜索天气
flow:
- ai: 搜索 "今日天气"
- sleep: 3000
- name: 检查结果
flow:
- aiAssert: 结果中展示了天气信息
```
:::info 样例项目
你可以在这里找到使用 YAML 脚本做自动化的样例项目
- [Web](https://github.com/web-infra-dev/midscene-example/tree/main/yaml-scripts-demo)
- [Android](https://github.com/web-infra-dev/midscene-example/tree/main/android/yaml-scripts-demo)
- [Computer(Mac/Windows/Linux)](https://github.com/web-infra-dev/midscene-example/tree/main/computer/yaml-scripts-demo)
:::
## 配置 AI 模型服务
下面以豆包 Seed 2.1 Turbo 为例:
```bash
export MIDSCENE_MODEL_BASE_URL="https://ark.cn-beijing.volces.com/api/v3"
export MIDSCENE_MODEL_API_KEY="your-api-key"
export MIDSCENE_MODEL_NAME="doubao-seed-2-1-turbo-260628"
export MIDSCENE_MODEL_FAMILY="doubao-seed"
```
将 `your-api-key` 替换为你的 API Key。
> 如需使用千问(Qwen)、GLM、Gemini 或 GPT-5 等其他模型,请参考[使用模型 API Key](/zh/model-api-setup.md)。
全部配置项请参考[模型配置](/zh/model-config.md)。
如果需要通过命令行执行 YAML 工作流,请查看 [YAML 脚本运行器](/zh/yaml-script-runner.md),了解安装、`.env` 支持以及 `midscene` 命令的用法。
## 脚本文件结构
脚本文件使用 YAML 格式来描述自动化任务。它定义了要操作的目标(如网页或安卓应用)以及一系列要执行的步骤。
一个标准的 `.yaml` 脚本文件包含 `page`、`browser`、`web`、`android`、`ios`、`harmony` 或 `computer` 部分配置环境,可选的 `agent` 部分配置 AI Agent 行为,以及一个 `tasks` 部分来定义自动化任务。
```yaml
page:
url: https://www.bing.com
# tasks 部分定义了要执行的一系列步骤
tasks:
- name: 搜索天气
flow:
- ai: 搜索 "今日天气"
- sleep: 3000
- aiAssert: 结果显示天气信息
```
使用 `page:` 表示 page-level Agent。使用 `browser:` 表示一个 Agent 管理 browser 和它的 active page。`web:` 仍作为兼容入口保留;`web.mode: browser` 会映射到 BrowserAgent,普通 `web:` 会映射到 PageAgent。不要在同一份脚本里同时使用 `page`、`browser`、`web` 或已废弃的 `target`。
### `agent` 部分
`agent` 部分用于配置 AI Agent 的行为和测试报告相关选项。所有字段都是可选的。
```yaml
# AI agent 配置
agent:
# 测试标识符,用于报告和缓存识别,可选
testId:
# 报告组名称,可选
groupName:
# 报告组描述,可选
groupDescription:
# 是否生成测试报告,可选,默认 true
generateReport:
# 是否自动打印报告消息,可选,默认 true
autoPrintReportMsg:
# 自定义报告文件名,可选
reportFileName:
# AI 最大重规划循环次数,可选,默认 20(UI-TARS 模型为 40)
replanningCycleLimit:
# 提供给 AI 的补充信息,可选;default 是共享的缺省回退值
aiContexts:
default:
aiAct:
aiQuery:
# 缓存配置,可选
cache:
# 缓存策略,可选,可选值:'read-only' | 'read-write' | 'write-only'
strategy:
# 缓存 ID,必填
id:
```
:::info Agent 配置说明
- **适用环境**:Web、iOS 和 Android 环境都支持 `agent` 配置
- **testId 优先级**:CLI 参数 > YAML agent.testId > 文件名
- **aiContexts**:提供给 AI 的补充信息,例如业务事实、规则、约束或输出要求。如果配置了 `default`,仅当本次调用和对应 API 都没有自己的 context 时才使用它。单次调用的 `context` 覆盖 API 级值,API 级值覆盖 `default`,这些值不会自动合并;空字符串会显式清空继承的用户 context。关于上下文知识的编写和传入方式,参见[为 GUI Agent 补充应用知识](/zh/provide-application-knowledge-to-gui-agent.md)。
- **aiActContext / aiActionContext**:`aiContexts.aiAct` 的已废弃兼容字段,均仍受支持。解析规则为 `aiContexts.aiAct ?? aiActContext ?? aiActionContext`;空字符串也会覆盖低优先级的兼容字段。新 YAML 脚本请使用 `aiContexts.aiAct`。
- **缓存配置**:详细用法请参考 [缓存功能文档](/zh/caching.md)
:::
#### 使用示例
```yaml
# agent 配置,适用于所有环境
agent:
testId: "checkout-test"
groupName: "E2E 测试套件"
groupDescription: "完整的购物流程测试"
generateReport: true
autoPrintReportMsg: false
reportFileName: "checkout-report"
replanningCycleLimit: 30
aiContexts:
default: "页面中的价格单位是美元。"
aiAct: "如果出现弹窗,点击同意。如果出现登录页面,跳过它。"
cache:
id: "checkout-cache"
strategy: "read-write"
# iOS 环境配置
ios:
launch: https://www.bing.com
wdaPort: 8100
# 或 Android 环境配置
android:
deviceId: s4ey59
launch: https://www.bing.com
tasks:
- name: 搜索天气
flow:
- ai: 搜索 "今日天气"
- aiAssert: 结果显示天气信息
```
### Web target 部分
推荐的 page-level target:
```yaml
page:
url: https://example.com
```
推荐的 browser-level target:
```yaml
browser:
url: https://example.com
autoFollowNewPage: true
```
兼容写法:
```yaml
web:
mode: browser
url: https://example.com
autoFollowNewPage: true
```
共享配置:
```yaml
page:
# 访问的 URL,必填。如果提供了 `serve` 参数,则提供相对路径
url:
# 在本地路径下启动一个静态服务,可选
serve:
# 浏览器 UA,可选
userAgent:
# 浏览器视口宽度,可选,默认 1440
viewportWidth:
# 浏览器视口高度,可选,默认 800
viewportHeight:
# 浏览器设备像素比,可选,默认跟随系统
deviceScaleFactor:
# JSON 格式的浏览器 Cookie 文件路径,可选
cookie:
# Chrome 下载目录(仅 Puppeteer 模式),可选
# 相对路径会基于当前工作目录解析
# bridgeMode 不支持该选项
downloadPath:
# 随每个请求发送的额外 HTTP 请求头(仅 Puppeteer 模式),可选
# 适用于服务器会校验自定义请求头的场景
# 值必须是字符串;像 true、false、纯数字这类会被 YAML 解析为非字符串的值需加引号,如 "true"
extraHTTPHeaders:
X-Custom-Token: my-token
Accept-Language: en-US
# Puppeteer 模式下等待网络空闲的策略,可选
# `timeout` 会作用于初始打开 YAML 中的 `web.url`,以及后续 `aiTap`、`aiInput` 等操作后的等待
# `continueOnNetworkIdleError` 只作用于初始打开 YAML 中的 `web.url`
waitForNetworkIdle:
# 每次网络空闲等待的超时时间,可选,默认 2000ms
timeout:
# 初始打开 YAML 中的 `web.url` 时,如果网络空闲等待超时,是否继续执行,可选,默认 true
# 后续脚本执行中的等待即使超时也总是继续执行
continueOnNetworkIdleError:
# 输出 aiQuery/aiAssert 结果的 JSON 文件路径,可选
output:
# 是否保存日志内容到 JSON 文件,可选,默认 `false`。如果为 true,保存到 `unstableLogContent.json` 文件中。如果为字符串,则保存到该字符串指定的路径中。日志内容的结构可能会在未来发生变化。
unstableLogContent:
# 是否限制页面在当前 tab 打开,可选,默认 true
# 仅 page mode 可用,不要与 `browser:` 或 `web.mode: browser` 同时使用
forceSameTabNavigation:
# BrowserAgent 是否自动继续在新打开的页面中执行,可选,默认 false
# 仅 browser mode 可用。请使用 `browser:` 或 `web.mode: browser`
autoFollowNewPage:
# CDP 连接端点,可选。设置后通过 CDP 连接到已有浏览器实例,而非启动新浏览器。
# 与 bridgeMode 互斥,不可同时使用。
cdpEndpoint: ws://localhost:9222/devtools/browser
# 桥接模式,可选,默认 false,可以为 'newTabWithUrl' 或 'currentTab'。更多详情请参阅后文
bridgeMode: false | 'newTabWithUrl' | 'currentTab'
# 是否在桥接断开时关闭新创建的标签页,可选,默认 false
closeNewTabsAfterDisconnect:
# 是否忽略 HTTPS 证书错误,可选,默认 false
acceptInsecureCerts:
# 自定义 Chrome 启动参数(仅 Puppeteer 模式,不支持桥接模式),可选
# 用于自定义 Chrome 浏览器行为,例如禁用第三方 Cookie 阻止
# ⚠️ 安全警告:某些参数(如 --no-sandbox、--disable-web-security)可能降低浏览器安全性
# 仅在受控的测试环境中使用
chromeArgs:
- '--disable-features=ThirdPartyCookiePhaseout'
- '--disable-features=SameSiteByDefaultCookies'
- '--window-size=1920,1080'
```
### Chrome Bridge {#chrome-bridge}
先完成 [Chrome Bridge 环境配置](/zh/bridge-mode.md)。在 `web` 中设置 `bridgeMode`:
| 配置 | 行为 |
| --------------- | ------------------ |
| `newTabWithUrl` | 使用 `url` 创建并连接新标签页 |
| `currentTab` | 连接当前激活标签页,忽略 `url` |
```yaml
web:
url: https://example.com
bridgeMode: newTabWithUrl
closeNewTabsAfterDisconnect: true
tasks:
- name: Check the page
flow:
- aiAssert: The page shows Example Domain
```
使用 [YAML 脚本运行器](/zh/yaml-script-runner.md)运行,首次连接时在插件中确认授权。`closeNewTabsAfterDisconnect` 默认 `false`;设为 `true` 时清理桥接创建的新标签页,不关闭连接前已有的标签页。
Bridge 模式与 `cdpEndpoint`、`web.mode: browser` 互斥。它复用桌面浏览器配置,以下字段会被忽略:
- `userAgent`
- `viewportWidth` / `viewportHeight`
- `deviceScaleFactor`
- `waitForNetworkIdle`
- `cookie`
- `extraHTTPHeaders`
- `downloadPath`
- `chromeArgs`
### `android` 部分
```yaml
android:
# 设备 ID,可选,默认使用第一个连接的设备
deviceId:
# 启动 URL,可选,默认使用设备当前页面
launch:
# 输出 aiQuery/aiAssert 结果的 JSON 文件路径,可选
output:
# 其他 AndroidDevice 构造函数支持的所有选项
# 例如:androidAdbPath, remoteAdbHost, remoteAdbPort,
# imeStrategy, displayId, autoDismissKeyboard, keyboardDismissStrategy,
# keyboardTypeDelay, minScreenshotBufferSize, alwaysRefreshScreenInfo 等
# 完整配置项请参考 AndroidDevice 的构造函数文档
```
:::info 查看完整的 Android 配置项
YAML 脚本现在支持 `AndroidDevice` 构造函数的所有配置选项。完整的配置项列表请参考 [Android API 参考中的 AndroidDevice](/zh/sdk/android.md#androiddevice)。
:::
#### Android 平台特定动作
Android 平台提供了一些特定的动作,可以在 YAML 脚本的 `flow` 中使用:
**`runAdbShell` - 执行 ADB Shell 命令**
在 Android 设备上执行 ADB shell 命令。传入的内容只需要包含 shell 命令本身,不要包含 `adb shell` 前缀。如需设置命令超时,请将 `timeout` 作为 `runAdbShell` 的同级字段。
```yaml
android:
deviceId: 'test-device'
tasks:
- name: 清除应用数据
flow:
- runAdbShell: 'pm clear com.example.app'
- name: 获取电池信息
flow:
- runAdbShell: 'dumpsys battery'
- name: 点击屏幕坐标
flow:
- runAdbShell: 'input tap 100 200'
- name: 执行带超时的命令
flow:
- runAdbShell: 'dumpsys activity services'
timeout: 60000
```
常用 ADB Shell 命令:
- `pm clear ` - 清除应用数据
- `dumpsys battery` - 获取电池信息
- `dumpsys window` - 获取窗口信息
- `settings get secure android_id` - 获取设备 ID
- `input tap ` - 点击屏幕坐标
- `input keyevent ` - 发送按键事件
**`launch` - 启动应用或 URL**
启动 Android 应用或打开 URL。
```yaml
android:
deviceId: 'test-device'
tasks:
- name: 启动设置应用
flow:
- launch: com.android.settings
- name: 打开网页
flow:
- launch: https://www.example.com
```
**`terminate` - 终止应用**
通过包名终止(强制停止)正在运行的 Android 应用。
```yaml
android:
deviceId: 'test-device'
tasks:
- name: 终止设置应用
flow:
- terminate: com.android.settings
```
### `ios` 部分
```yaml
ios:
# WebDriverAgent 端口,可选,默认 8100
wdaPort:
# WebDriverAgent 主机地址,可选,默认 localhost
wdaHost:
# 网关带路径前缀时,用 wdaBaseUrl 替代 wdaHost/wdaPort。
# 同时设置 wdaBaseUrl 与 wdaHost 或 wdaPort 会报错。
# wdaBaseUrl:
# 可单独设置 MJPEG 流地址,包括网关路径;不能与 wdaMjpegPort 同时设置。
# wdaMjpegUrl:
# 本地 MJPEG 流端口,可选。与 wdaMjpegUrl 二选一。
# wdaMjpegPort:
# 是否自动关闭键盘,可选,默认 false
autoDismissKeyboard:
# 启动 URL 或应用包名,可选,默认使用设备当前页面
launch:
# 输出 aiQuery/aiAssert 结果的 JSON 文件路径,可选
output:
# 是否保存日志内容到 JSON 文件,可选,默认 `false`。如果为 true,保存到 `unstableLogContent.json` 文件中。如果为字符串,则保存到该字符串指定的路径中。日志内容的结构可能会在未来发生变化。
unstableLogContent:
# 其他 IOSDevice 构造函数支持的所有选项
# 完整配置项请参考 IOSDevice 的构造函数文档
```
连接带路径前缀的网关时,只设置 `wdaBaseUrl`。MJPEG 流可以使用单独的地址:
```yaml
ios:
wdaBaseUrl: ${WDA_BASE_URL}
wdaMjpegUrl: ${WDA_MJPEG_URL}
```
运行脚本前,请设置这两个环境变量。Studio Recorder 导出的 YAML 也引用环境变量。这样,网关路径和访问令牌不会写入文件。
:::info 查看完整的 iOS 配置项
YAML 脚本现在支持 `IOSDevice` 构造函数的所有配置选项。完整的配置项列表请参考 [iOS API 参考中的 IOSDevice](/zh/sdk/ios.md#iosdevice)。
:::
#### iOS 平台特定动作
iOS 平台提供了一些特定的动作,可以在 YAML 脚本的 `flow` 中使用:
**`runWdaRequest` - 执行 WebDriverAgent API 请求**
在 iOS 设备上直接执行 WebDriverAgent API 请求。
```yaml
ios:
launch: 'com.apple.mobilesafari'
tasks:
- name: 通过 WDA 按下主屏幕按钮
flow:
- runWdaRequest:
method: POST
endpoint: /session/test/wda/pressButton
data:
name: home
- name: 获取设备信息
flow:
- runWdaRequest:
method: GET
endpoint: /wda/device/info
```
参数:
- `method`(字符串,必需):HTTP 方法(GET、POST、DELETE 等)
- `endpoint`(字符串,必需):WebDriverAgent API 端点
- `data`(任意类型,可选):请求体数据
常用 WebDriverAgent 端点:
- `/wda/screen` - 获取屏幕信息
- `/wda/device/info` - 获取设备信息
- `/session/{sessionId}/wda/pressButton` - 按硬件按钮
- `/session/{sessionId}/wda/apps/launch` - 启动应用
- `/session/{sessionId}/wda/apps/terminate` - 终止应用
- `/session/{sessionId}/wda/apps/activate` - 激活应用
**`launch` - 启动应用或 URL**
启动 iOS 应用或打开 URL。
```yaml
ios:
wdaPort: 8100
tasks:
- name: 启动设置应用
flow:
- launch: com.apple.Preferences
- name: 打开网页
flow:
- launch: https://www.example.com
```
**`terminate` - 终止应用**
通过 Bundle ID 终止(关闭)正在运行的 iOS 应用。
```yaml
ios:
wdaPort: 8100
tasks:
- name: 终止设置应用
flow:
- terminate: com.apple.Preferences
```
### `harmony` 部分
`harmony` 部分用于通过 HDC 进行 HarmonyOS 设备自动化。设备通过 `hdc` 连接,运行前请先确认 `hdc list targets` 能列出你的设备。
```yaml
harmony:
# 要连接的 HarmonyOS 设备 ID,可选,默认使用第一个已连接的设备。
deviceId:
# 要启动的应用,可选,默认使用设备当前屏幕。
launch:
# HDC 可执行文件路径,可选。
hdcPath:
# 输入完成后是否自动收起键盘,可选,默认为 true。
autoDismissKeyboard:
# 应用名到 bundle name 或显式 bundle/Ability 目标的自定义映射,可选。
# 用户提供的映射优先级高于默认映射。
appNameMapping:
:
# 用于输出 aiQuery/aiAssert 结果的 JSON 文件路径,可选。
output:
# HarmonyDevice 构造函数支持的其他所有选项
```
#### HarmonyOS 平台专属动作
**`launch` - 启动应用**
通过 bundle name 或显式 `bundle/Ability` 目标启动 HarmonyOS 应用。
```yaml
harmony:
deviceId: 'test-device'
appNameMapping:
视频: com.example.video/PhoneAbility
tasks:
- name: 启动应用
flow:
- launch: 视频
```
**`terminate` - 终止应用**
通过 Bundle 名或映射的应用名终止(强制停止)正在运行的 HarmonyOS 应用。
```yaml
harmony:
deviceId: 'test-device'
tasks:
- name: 终止应用
flow:
- terminate: com.example.app
```
**`runHdcShell` - 执行 HDC Shell 命令**
在 HarmonyOS 设备上执行 HDC shell 命令。
```yaml
harmony:
deviceId: 'test-device'
tasks:
- name: 导出窗口信息
flow:
- runHdcShell:
command: 'hidumper -s WindowManagerService -a'
```
### `computer` 部分
`computer` 部分用于 PC 桌面自动化。它允许你控制桌面环境,包括鼠标移动、键盘输入和屏幕查询。
```yaml
computer:
# 使用的显示器 ID,可选,默认使用主显示器
displayId:
# 输出 aiQuery/aiAssert 结果的 JSON 文件路径,可选
output:
```
#### 使用示例
```yaml
computer: {}
tasks:
- name: 打开浏览器并搜索
flow:
- aiAct: 按下 Cmd+Space
- sleep: 500
- aiAct: 输入 "Safari" 并按回车
- sleep: 2000
- aiAct: 按下 Cmd+L 聚焦地址栏
- aiAct: 输入 "https://www.bing.com"
- aiAct: 按下回车
- sleep: 3000
- aiAct: 在搜索框中输入 "今日天气" 并按回车
- aiAssert: 结果显示天气信息
```
:::info 平台说明
上面的示例脚本使用 macOS 命令。对于 Windows,请修改脚本:
- 使用 `按下 Windows 键` 代替 `按下 Cmd+Space`
- 使用 `输入 "Chrome"` 代替 `输入 "Safari"`
- 使用 `按下 Ctrl+L` 代替 `按下 Cmd+L`
:::
### `tasks` 部分
`tasks` 部分是一个数组,定义了脚本执行的步骤。记得在每个步骤前添加 `-` 符号,表明这些步骤是个数组。
`flow` 部分的接口与 [API](/zh/reference.md#common) 几乎相同,除了一些参数的嵌套层级。
```yaml
tasks:
- name:
continueOnError: # 可选,错误时是否继续执行下一个任务,默认 false
flow:
# 自动规划(Auto Planning, .ai)
# ----------------
# 执行一个交互,`ai` 是 `aiAct` 的简写方式
- ai:
cacheable: # 可选,当启用 [缓存功能](./caching.mdx) 时,是否允许缓存当前 API 调用结果。默认值为 True
deepThink: # 可选,引导 aiAct 注重任务拆解,并将任务 Planning 和 UI 元素定位拆解为不同的模型调用。默认值为 false。
deepLocate: # 可选,在 aiAct 执行过程中为 UI 元素定位开启深度定位。默认值为 false。
# 这种用法与 `ai` 相同
# 注意:在之前版本中也被写作 `aiAction`,当前版本兼容两种写法
- aiAct:
cacheable: # 可选,当启用 [缓存功能](./caching.mdx) 时,是否允许缓存当前 API 调用结果。默认值为 True
deepThink: # 可选,引导 aiAct 注重任务拆解,并将任务 Planning 和 UI 元素定位拆解为不同的模型调用。默认值为 false。
deepLocate: # 可选,在 aiAct 执行过程中为 UI 元素定位开启深度定位。默认值为 false。
# 即时操作(Instant Action, .aiTap, .aiHover, .aiInput, .aiKeyboardPress, .aiScroll)
# ----------------
# 点击一个元素,用 prompt 描述元素位置
- aiTap:
deepLocate: # 可选,是否为该元素开启深度定位。默认值为 False
xpath: # 可选,目标元素的 xpath 路径,用于执行当前操作。如果提供了这个 xpath,Midscene 会优先使用该 xpath 来找到元素,然后依次使用缓存和 AI 模型。默认值为空
cacheable: # 可选,当启用 [缓存功能](./caching.mdx) 时,是否允许缓存当前 API 调用结果。默认值为 True
fileChooserAccept: | [, ] # 可选,当点击触发文件选择器时,指定要上传的文件路径;仅在 web 中可用
# 鼠标悬停一个元素,用 prompt 描述元素位置
- aiHover:
deepLocate: # 可选,是否为该元素开启深度定位。默认值为 False
xpath: # 可选,目标元素的 xpath 路径,用于执行当前操作。如果提供了这个 xpath,Midscene 会优先使用该 xpath 来找到元素,然后依次使用缓存和 AI 模型。默认值为空
cacheable: # 可选,当启用 [缓存功能](./caching.mdx) 时,是否允许缓存当前 API 调用结果。默认值为 True
# 输入文本到一个元素,用 prompt 描述元素位置
- aiInput: # 要输入文本的元素
value: <输入框的最终文本内容>
deepLocate: # 可选,是否为该元素开启深度定位。默认值为 False
xpath: # 可选,目标元素的 xpath 路径,用于执行当前操作。如果提供了这个 xpath,Midscene 会优先使用该 xpath 来找到元素,然后依次使用缓存和 AI 模型。默认值为空
cacheable: # 可选,当启用 [缓存功能](./caching.mdx) 时,是否允许缓存当前 API 调用结果。默认值为 True
# 在元素上按下某个按键(如 Enter,Tab,Escape 等),用 prompt 描述元素位置
- aiKeyboardPress: # 要按键的目标元素
keyName: <按键>
deepLocate: # 可选,是否为该元素开启深度定位。默认值为 False
xpath: # 可选,目标元素的 xpath 路径,用于执行当前操作。如果提供了这个 xpath,Midscene 会优先使用该 xpath 来找到元素,然后依次使用缓存和 AI 模型。默认值为空
cacheable: # 可选,当启用 [缓存功能](./caching.mdx) 时,是否允许缓存当前 API 调用结果。默认值为 True
# 全局滚动,或滚动 prompt 描述的元素
- aiScroll: # 可选,执行滚动的元素
scrollType: 'singleAction' # 或 'scrollToBottom' | 'scrollToTop' | 'scrollToRight' | 'scrollToLeft',默认值为 'singleAction'
direction: 'down' # 或 'up' | 'left' | 'right',默认值为 'down'。仅在 scrollType 为 singleAction 时生效
distance: # 可选,滚动距离,单位为设备的逻辑像素,
# 也就是自定义设备接入时 size() 返回的宽高所使用的坐标单位。设置为 null 表示由 Midscene 自动决定。
# 执行时,该距离在触摸设备上会转换为滑动手势的移动距离,在 Web/桌面端会转换为滚轮滚动增量。
# 页面内容最终的移动距离不保证与该值相同。
deepLocate: # 可选,是否为该元素开启深度定位。默认值为 False
xpath: # 可选,目标元素的 xpath 路径,用于执行当前操作。如果提供了这个 xpath,Midscene 会优先使用该 xpath 来找到元素,然后依次使用缓存和 AI 模型。默认值为空
cacheable: # 可选,当启用 [缓存功能](./caching.mdx) 时,是否允许缓存当前 API 调用结果。默认值为 True
# 在报告文件中记录当前截图,并添加描述
- recordToReport: # 可选,截图的标题,如果未提供,则标题为 'untitled'
content: # 可选,截图的描述
# 数据提取
# ----------------
# 执行一个查询,返回一个 JSON 对象
- aiQuery: # 记得在提示词中描述输出结果的格式
name: # 查询结果在 JSON 输出中的 key
# 更多 API
# ----------------
# 等待某个条件满足,并设置超时时间(ms,可选,默认 30000)
- aiWaitFor:
timeout:
# 执行一个断言
- aiAssert:
errorMessage: # 可选,当断言失败时打印的错误信息。
name: # 可选,给断言一个名称,会在 JSON 输出中作为 key 使用
- aiBoolean:
name: # 可选,给布尔结果一个名称,会在 JSON 输出中作为 key 使用
# 运行一个 Gherkin Scenario。此功能从 Midscene 1.10 开始支持,目前仍处于 Beta 阶段。
- runGherkinScenario: |
Scenario: 添加待办事项
Given 待办事项页面已经打开
When 我添加一条名为“买牛奶”的待办事项
Then 待办事项列表中应该包含“买牛奶”
# 等待一定时间
- sleep:
# 在 web 页面上下文中执行一段 JavaScript 代码
- javascript:
name: # 可选,给返回值一个名称,会在 JSON 输出中作为 key 使用
- name:
flow:
# ...
```
`runGherkinScenario` 从 Midscene 1.10 开始支持,目前仍处于 Beta 阶段。支持规则和限制请参考 [BDD 风格脚本(Gherkin)](/zh/advanced/bdd-style-scripts-with-gherkin.md)。
#### 步骤结果名称
带有 `name` 的步骤会把结果写入当前 YAML 运行结果和 JSON 输出中。使用 `name` 标记需要出现在运行结果里的值。
```yaml
tasks:
- name: 保存提取结果
flow:
- aiString: 读取页面中的商品 id
name: product_id
- aiQuery: 提交商品 id 后,获取搜索结果
name: search_result
```
#### 使用 `aiTap` 上传文件
当点击某个按钮会弹出文件选择器时,可以在 `aiTap` 步骤上直接设置 `fileChooserAccept`。它支持单个路径,也支持路径数组。
```yaml
tasks:
- name: 上传单个文件
flow:
- aiTap: 选择文件按钮
fileChooserAccept: ./fixtures/document.pdf
- name: 上传多个文件
flow:
- aiTap: 上传图片按钮
fileChooserAccept:
- ./fixtures/image1.jpg
- ./fixtures/image2.png
```
如果你已经在用 `locate` 对象写 `prompt`、`images` 等定位信息,`fileChooserAccept` 仍然要和 `locate` 保持同级,不要放到 `locate` 或 `aiTap` 的嵌套对象里:
```yaml
tasks:
- name: 带 locate 的文件上传
flow:
- aiTap:
locate:
prompt: 点击上传按钮
fileChooserAccept: ./fixtures/document.pdf
```
注意:
- `fileChooserAccept` 仅在 web 页面(Playwright、Puppeteer 或 Chrome extension Bridge mode)中可用。
- 相对路径会基于当前命令执行目录解析,而不是基于 YAML 文件所在目录解析。
- 如果文件不存在,脚本会在执行点击前直接报错。
- Chrome extension Bridge mode 上传本地文件时,需要在 `chrome://extensions` > Midscene > “Details” 中开启插件的 “Allow access to file URLs” 权限。开启后请从目标 `http(s)://` 页面重新连接桥接模式。
- Chrome extension Bridge mode 不支持目录上传输入框(`webkitdirectory` / `directory`)。如需上传目录,请使用 Playwright。
#### 使用图像提示
对于支持在提示词中附带图像的步骤(参见 [API 参考](/zh/reference.md#prompting-with-images)),可以把提示词改写为对象,并通过设置 `images` 字段(一个包含 `name` 和 `url` 的对象数组)来附加图像。该对象包含以下字段:
- `prompt`:发送给模型的文本描述。
- `images`(可选):提示词引用的参考图像,每一项需要提供 `name` 和 `url`。
- `convertHttpImage2Base64`(可选):在图片链接无法公开访问时,将 HTTP 链接转换为 Base64 再发送给模型。
图片 URL 可以是本地路径、Base64 字符串或远程链接。如果图片链接无法被模型访问,请设置 `convertHttpImage2Base64: true`,Midscene 会将图像下载后以 Base64 字符串的形式发送给模型。
对于 `aiTap`、`aiHover`、`aiDoubleClick`、`aiRightClick` 等交互操作,请把文本和图像配置写在 `locate` 字段中,`locate` 与操作指令同级。
```yaml
tasks:
- name: 校验品牌一致性
flow:
- aiHover:
locate:
prompt: 将鼠标移动到包含 GitHub 标志的区域。
images:
- name: GitHub 标志
url: https://github.githubassets.com/assets/GitHub-Mark-ea2971cee799.png
convertHttpImage2Base64: true
- aiTap:
locate:
prompt: 点击包含 GitHub 标志的区域。
images:
- name: GitHub 标志
url: https://github.githubassets.com/assets/GitHub-Mark-ea2971cee799.png
convertHttpImage2Base64: true
```
> 旧的嵌套写法(将 `locate` 缩进到操作指令内部,例如 `aiTap: \n locate: ...`)仍然支持,但不推荐使用。
对于 `aiAct`(及其简写 `ai`),以及 `aiAsk`、`aiQuery`、`aiBoolean`、`aiNumber`、`aiString`、`aiAssert` 等视觉问答类步骤,都可以直接在操作指令下设置 `prompt` 和 `images` 字段。
```yaml
tasks:
- name: 校验品牌一致性
flow:
- aiAssert:
prompt: 判断页面上是否出现该图像。
images:
- name: 目标标志
url: https://github.githubassets.com/assets/GitHub-Mark-ea2971cee799.png
convertHttpImage2Base64: true
```
## 注意事项
### `agent.runYaml` 只会解析 `tasks` 字段
当使用 `agent.runYaml()` api 时,YAML 文件中只有 `tasks` 字段会被解析和执行。
因为此时 agent 已经在 js 脚本中完成初始化,无法根据 YAML 中的 `agent` 配置再次初始化。
---
url: /zh/awesome-midscene.md
---
> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.
# Awesome Midscene
基于 Midscene.js 开发的社区项目精选列表,涵盖不同平台和编程语言的扩展功能。
官方图标和品牌色请参阅[品牌资源](/zh/brand-resources.md)。
## 社区项目
最新收录的项目列在最前面。
### [KiritoKing/midscene-jev-runner](https://github.com/KiritoKing/midscene-jev-runner)
将 [Jev](https://typesafe.ai/) 决策模型接入 Playwright 和 Midscene Test 的浏览器自动化工具
- 将页面控件和可用操作整理为候选项,由 Jev 选择下一步动作与目标;需要填写文本时,再调用文本生成模型
- 可直接操作已有的 Playwright 页面,或作为 `jevAct` 步骤接入 Midscene Test,支持自定义任务完成条件校验
### [lhuanyu/midscene-android](https://github.com/lhuanyu/midscene-android)
在 Android 设备上直接使用 Midscene 的自动化应用,无需通过 PC 连接 ADB 设备
- 输入自然语言指令即可操作设备上的应用,也可编辑和运行 YAML 脚本,在设备上查看执行报告与历史记录
- 通过悬浮进度提示查看任务状态,并可中断执行
- Agent 和执行环境运行在设备上,提示词与截图发送至用户配置的模型服务
### [lhuanyu/midscene-ios](https://github.com/lhuanyu/midscene-ios)
iOS Mirror 应用的自动化支持工具
- 支持 iOS 应用程序的自动化测试和交互
- 将 Midscene 的跨平台能力扩展到苹果移动生态系统
### [Mofangbao/midscene-pc](https://github.com/Mofangbao/midscene-pc)
支持 Windows、macOS 和 Linux 的 PC 操作设备
- 支持跨所有主流平台的桌面应用程序自动化测试和交互
- 支持本地和远程操作能力
### [Mofangbao/midscene-pc-docker](https://github.com/Mofangbao/midscene-pc-docker)
预装 Midscene-PC 服务器的 Docker 容器镜像
- 基于 Ubuntu 20 和 GNOME 桌面,最大化应用程序兼容性
- 内置 VNC 服务,支持通过浏览器监控桌面操作
- 一键命令即可在标准服务器上部署自动化客户端
### [Python51888/Midscene-Python](https://github.com/Python51888/Midscene-Python)
Python 版本的 Midscene SDK
- 为 Python 开发者提供 Midscene 的 AI 驱动自动化能力
- 支持与现有 Python 测试和自动化工作流程的集成
### [Master-Frank/midscene-java](https://github.com/Master-Frank/midscene-java)
Java 版本的 Midscene SDK
- 提供与 Python 版本类似的体验,适配 JVM 生态
- 易于整合到现有的 Java 自动化或测试流程
### [alstafeev/midscene-java](https://github.com/alstafeev/midscene-java)
Java 版本的 Midscene SDK
- 提供用于脚本化 Midscene 的 JVM 原生接口
- 无缝整合至现有的 Java 测试框架与自动化工作流程
## 如何贡献
创建了扩展 Midscene.js 功能的项目?我们很乐意在这里展示!
要将你的项目添加到这个列表,请在 [Midscene 仓库](https://github.com/web-infra-dev/midscene) 中提交 issue,告知我们你的 awesome midscene 项目。
## 收录标准
Awesome Midscene 应当满足:
- 扩展或集成 Midscene.js 功能
- 积极维护中
- 有清晰的文档和使用示例
- 为 Midscene 社区提供价值
***
_没有看到你喜欢的平台或语言支持?考虑创建一个社区项目或为现有项目贡献代码!_
---
url: /zh/basics.md
---
> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.
# 基本概念
本文介绍 Midscene 的视觉路线、使用方式和关键 API,帮助你理解并使用 GUI Agent。想先动手体验,可以直接阅读[开始使用](/zh/get-started.md)。
## 基于视觉的自动化路线
Midscene 根据截图理解界面、定位目标并执行操作,再观察结果。UI 定位和操作不依赖 DOM、Selector 或额外标注,主要有四个优势:
- **契合 E2E 测试的初衷**:像用户一样操作软件,从用户视角验证完整流程。根据屏幕上的文字、图标和布局操作,检查实际呈现的结果,包括选中状态、错误提示和元素遮挡。
- **与界面技术栈无关**:HTML、Canvas、移动端和桌面应用都以截图呈现。平台提供截图和操作能力后,即可使用同一套 Agent API,减少对应用内部结构的依赖。
- **与主流模型路线一致**:[Gemini Computer Use](https://ai.google.dev/gemini-api/docs/computer-use) 和 [UI-TARS](https://github.com/bytedance/UI-TARS) 都采用截图驱动的交互方式。Midscene 通过模型适配,让用户在统一 API 下选择模型,并受益于模型能力的进步。
- **成本可承受**:在 [AppControlBench 评测](/zh/app-control-bench-report.md)中,豆包 Seed 2.1 Turbo 执行 60 项任务、通过 58 项,模型调用总费用约 $0.59。实际费用随模型、任务和缓存命中情况变化。
视觉路线需要模型具备 UI 定位能力,支持的模型见[模型选择指南](/zh/model-selection.md)。数据提取和页面理解仍可按需附带 DOM 信息,详见 [API 参考](/zh/reference.md#extraction-location-assertion)。
## 选择适合你的使用方式 {#choose-your-path}
Midscene 提供了一个跨平台 GUI Agent,支持 Web、移动端和桌面应用。它能根据自然语言指令操作界面、检查结果和提取数据。用于测试时,你可以根据用例编写习惯和已有工程选择接入方式。
如果希望用 YAML 组织测试,可以使用 E2E 测试框架 **Midscene Test**。它支持 Web、移动端和桌面应用,你可以用 YAML 描述测试步骤和预期结果,用 TypeScript 扩展业务操作,并由框架统一管理数据准备、清理、重试和执行报告。
如果已有 JavaScript/TypeScript 测试工程,或倾向于用代码编写用例,可以通过 SDK 将 GUI Agent 接入 Playwright Test、Rstest、Vitest 等测试框架,为用例增加视觉操作与断言能力。
| 你想做什么 | 从这里开始 |
| ------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| 先体验自然语言操作与断言 | [开始使用](/zh/get-started.md) |
| 用 YAML 组织 Web、移动端或桌面端测试 | [创建测试项目](/zh/midscene-test/use.md) |
| 在 JavaScript/TypeScript 工程中编写测试 | [接入 Playwright Test](/zh/integrate-with-playwright.md)、[Rstest](/zh/sdk/rstest.md) 或 [Vitest](/zh/sdk/vitest.md) |
| 运行独立自动化流程 | [独立脚本](/zh/sdk/standalone.md) |
| 让 AI 编程助手操作应用 | [Midscene Skills](/zh/skills.md) |
## 关键 API {#javascript-orchestration}
### 规划并交互
**`aiAct`**
[`aiAct`](/zh/reference.md#agentaiact) 接收用自然语言描述的目标。它会观察界面,规划操作步骤,定位目标元素并执行操作,直至完成目标。提示词也可以包含断言条件。Midscene 会在执行过程中验证这些条件,并在断言失败时及时抛出错误。
`aiAct` 灵活且自主,适合处理多步骤、包含条件分支或执行路径不确定的任务。执行期间,`aiAct` 会基于最新的界面状态持续进行 AI 规划,因此它通常比即时交互消耗更多时间和 token。
典型用法:
```typescript
await agent.aiAct(
'搜索耳机,将第一件商品加入购物车,并确认购物车数量变为 1',
);
```
### 即时交互
即时交互类 API 每次只执行一个指定操作:先定位 UI 元素,再对该元素执行固定动作。
这类 API 不会规划多个步骤。对于“如果出现弹窗,先关闭弹窗,然后点击结账按钮”这类需求,请使用 `aiAct`。即时交互 API 会将提示词视为目标元素的描述,而非工作流。
**`aiTap`**
[`aiTap`](/zh/reference.md#agentaitap) 用于定位并点击元素。
典型用法:
```typescript
await agent.aiTap('购物车中的结账按钮');
```
**`aiInput`**
[`aiInput`](/zh/reference.md#agentaiinput) 用于定位输入框并输入指定内容。它默认使用 `replace` 模式:先清空输入框中的现有内容,再输入新内容。
典型用法:
```typescript
await agent.aiInput('邮箱地址输入框', {
value: 'user@example.com',
});
```
其他输入模式包括 `typeOnly` 和 `clear`。`typeOnly` 会保留现有内容,`clear` 仅清空输入框。
即时交互 API 还包括 `aiHover`、`aiClearInput`、`aiKeyboardPress`、`aiScroll`、`aiPinch`、`aiLongPress`、`aiDoubleClick` 和 `aiRightClick`。各 API 支持的平台不同,详见 API 参考中的[规划与交互](/zh/reference.md#planning-interaction)。
### 界面理解(Insight)
界面理解类 API 只观察界面并返回分析结果,不会操作界面。它们默认使用当前截图。在 Web 页面中,如果任务需要读取截图中不可见的 DOM 信息,可以传入 `domIncluded`。
**`aiAssert`**
[`aiAssert`](/zh/reference.md#agentaiassert) 用于检查自然语言描述的条件。条件成立时,该方法正常结束;条件不成立时,该方法会抛出错误,并在错误信息中说明模型返回的原因。
典型用法:
```typescript
await agent.aiAssert('购物车中有一件商品,并且页面显示了小计金额');
```
**`aiQuery`**
[`aiQuery`](/zh/reference.md#agentaiquery) 用于从界面中提取结构化数据。请在提示词中描述所需数据,以及数据的预期类型或结构。
典型用法:
```typescript
const items = await agent.aiQuery<
Array<{ name: string; price: number }>
>('购物车中的商品,{name: string, price: number}[]');
// items 示例:[{ name: '无线耳机', price: 99.9 }]
```
**`aiBoolean`**
[`aiBoolean`](/zh/reference.md#agentaiboolean) 用于询问与界面有关的问题,并返回布尔值。
典型用法:
```typescript
const loginDialogVisible = await agent.aiBoolean('登录对话框是否可见');
// loginDialogVisible 示例:true
```
其他便捷方法包括:返回数字的 [`aiNumber`](/zh/reference.md#agentainumber),以及返回字符串的 [`aiString`](/zh/reference.md#agentaistring) 和 [`aiAsk`](/zh/reference.md#agentaiask)。
### 按需增强规划与定位
- **`deepThink`:增强规划**。用于 `aiAct`,更注重任务拆解,并将规划和元素定位拆成不同的模型调用,适合复杂的多步骤任务。详见 [`deepThink` 规划模式](/zh/reference.md#aiact-deepthink)。
- **`deepLocate`:增强定位**。用于 `aiAct`、`aiTap` 等需要定位元素的 API,通过额外一次模型调用提高定位准确性,适合较小或难以区分的目标。详见[深度定位](/zh/reference.md#深度定位deeplocate)。
两者默认关闭,可以独立开启,也可以在 `aiAct` 中组合使用。它们会增加模型调用开销,建议先使用默认配置,遇到规划或定位问题时再按需开启。
```typescript
await agent.aiAct('完成结账表单,在下单前停止', { deepThink: true });
await agent.aiTap('右上角的购物车图标', { deepLocate: true });
```
## 下一步
- [模型选择指南](/zh/model-selection.md):了解何时使用默认模型,以及何时组合多个模型。
- [开始使用](/zh/get-started.md):配置平台与模型,完成第一次运行。
- [创建测试项目](/zh/midscene-test/use.md):编写和运行 YAML 测试。
- [API 参考](/zh/reference.md):查询完整参数和平台支持情况。
---
url: /zh/blog-introducing-instant-actions-and-deep-think.md
---
> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.
# 即时操作和深度思考
从 Midscene v0.14.0 开始,我们引入了两个新功能:即时操作(Instant Actions)和深度思考(Deep Think)。
## 即时操作(Instant Actions)- 让交互表现更稳定
你可能已经熟悉我们的 `.ai` 接口。它是一个自动规划接口,用于与网页进行交互。例如,当进行搜索时,你可以这样做:
```typescript
await agent.ai('在搜索框中输入 "Headphones",按下回车键');
```
在接口的背后,Midscene 会调用 LLM 来规划步骤并执行它们。你可以在报告中看到整个过程。这是一个非常常见的 AI Agent 运行模式。

与此同时,许多测试工程师希望有一个更快的方式来执行 UI 操作。当在 AI 模型中使用复杂 prompt 时,一些 LLM 模型可能规划出错误的步骤,或者返回元素的坐标不准确。这些不可预测的过程时常常会让人感受到挫败。
为了解决这个问题,我们引入了 `aiTap()`, `aiHover()`, `aiInput()`, `aiKeyboardPress()`, `aiScroll()` 接口。这些接口会直接执行指定的操作,而 AI 模型只负责底层任务,如定位元素等。使用这些接口后,整个过程可以明显更快和更可靠。
例如,上面的搜索操作可以重写为:
```typescript
await agent.aiInput('耳机', '搜索框');
await agent.aiKeyboardPress('Enter');
```
在报告中,你会看到现在已经没有了规划 (Planning) 过程:

使用这些接口的脚本看起来有点冗余(或者不太“智能”),但请相信,使用这些结构化的接口确实是一个节省时间的好方法,尤其是在操作已经非常明确的时候。
## 深度思考(Deep Think)- 让元素定位更准确
当使用 Midscene 与一些复杂的 UI 控件交互时,LLM 可能很难定位目标元素。我们引入了一个新的选项 `deepThink`(深度思考)到即时操作接口中。
启用 `deepThink` 的即时操作函数签名如下:
```typescript
await agent.aiTap('target', { deepThink: true });
```
`deepThink` 是一种策略。它会首先找到一个包含目标元素的区域,然后“聚焦”在这个区域中再次搜索元素。通过这种方式,目标元素的坐标会更准确。
让我们以 Coze.com 的工作流编辑页面为例。这个页面有许多自定义的图标在侧边栏。这对于 LLM 来说很难区分目标元素和它的周围元素。

在即时操作中使用 `deepThink` 后,脚本会变成这样(当然,你也可以使用 javascript 接口):
```yaml
tasks:
- name: edit input panel
flow:
- aiTap: the triangle icon on the left side of the text "Input"
deepThink: true
- aiTap: the first checkbox in the Input form
deepThink: true
- aiTap: the expand button on the second row of the Input form (on the right of the checkbox)
deepThink: true
- aiTap: the delete button on the second last row of the Input form
deepThink: true
- aiTap: the add button on the last row of the Input form (second button from the right)
deepThink: true
```
通过查看报告文件,你会看到 Midscene 已经找到了页面中的每个目标元素。

就像上面的例子一样,精细的 `deepThink` 提示词是保持结果稳定的关键。
`deepThink` 只适用于支持视觉定位的模型,如 qwen2.5-vl。如果你使用的是像 gpt-4o 这样的模型,`deepThink` 将无法发挥作用。
---
url: /zh/brand-resources.md
---
> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.
# 品牌资源
本页提供 Midscene.js 官方图标和品牌色,供文档、集成和徽章引用。
## 图标
- 单色 SVG
- 彩色图标
- [GitHub 上的全部品牌资源](https://github.com/web-infra-dev/midscene/tree/main/apps/site/docs/public/images/brand)
单色 SVG 使用 24 × 24 的 viewBox 和单个复合路径,背景透明,未指定填充颜色,默认显示为黑色。可在渲染时设置填充颜色。
## 品牌色
Midscene.js 的品牌色为深灰色:
| 格式 | 色值 |
| --- | ------------ |
| HEX | `#3F464C` |
| RGB | `63, 70, 76` |
该色值取自彩色 Logo 的边框。如果图标库要求不带井号的六位十六进制色值,请填写 `3F464C`。
单色展示时,可在浅色背景上使用品牌色,在深色背景上使用白色。请保持图标的原始比例。
## 来源和项目信息
- [单色 SVG 源文件](https://github.com/web-infra-dev/midscene/blob/main/apps/site/docs/public/images/brand/midscenedotjs.svg)
- [Midscene.js 仓库](https://github.com/web-infra-dev/midscene)
- [项目许可证](https://github.com/web-infra-dev/midscene/blob/main/LICENSE)
---
url: /zh/bridge-mode.md
---
> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.
# Chrome Bridge 环境配置
Chrome Bridge 通过 Midscene Chrome 插件,让 Node.js 脚本直接控制桌面 Chrome 浏览器,从而复用浏览器中已有的登录状态、Cookie 和扩展程序。运行脚本的 Node.js 进程负责启动 Bridge Server 并调用 AI 模型,Chrome 插件则连接到该服务并执行标签页操作。

## 安装与权限
1. 安装 [Midscene Chrome 插件](https://chromewebstore.google.com/detail/midscene/gbldofcpkknbggpkmbdaefngejllnief)。安装后,插件默认会在后台自动监听本地连接请求,无需手动开启。
2. (可选)如果脚本需要触发本地文件上传,请在浏览器地址栏访问 `chrome://extensions`,进入 Midscene 插件的「详情」页,开启**允许访问文件网址**(**Allow access to file URLs**)。配置完成后,请先切回目标 `http(s)://` 页面再发起连接。
## 在 Playground 中验证模型和页面交互
先在[开始使用](/zh/get-started.md?platform=web\&scene=playground)中选择 Web 和 Playground,在插件中保存模型配置,在 TodoMVC 中完成一次 `aiAct` 操作和 `aiAssert` 断言,并查看执行步骤和截图。
插件 Playground 直接操作当前页面,不经过 Node.js Bridge Server。完成体验后,还需要执行下面的连接检查,确认脚本进程可以通过插件控制 Chrome。
[](#)
## 验证连接 {#verify-connection}
以下最小示例仅用于验证 Node.js 脚本与 Chrome 插件之间的通信链路,不调用任何 AI 方法,因此无需提前配置模型。
### 1. 安装依赖
安装 Node.js(版本范围:`^20.19.0 || ^22.12.0 || >=24.0.0`),安装 pnpm,在项目目录执行 `pnpm init`(已有 `package.json` 时跳过),然后安装依赖:
```sh [npm]
npm install @midscene/web tsx --save-dev
```
```sh [yarn]
yarn add @midscene/web tsx --save-dev
```
```sh [pnpm]
pnpm add @midscene/web tsx --save-dev
```
```sh [bun]
bun add @midscene/web tsx --save-dev
```
```sh [deno]
deno add npm:@midscene/web npm:tsx --save-dev
```
### 2. 编写代码
将以下代码保存为 `bridge-check.ts`:
```typescript title="bridge-check.ts"
import { AgentOverChromeBridge } from '@midscene/web/bridge-mode';
async function main() {
const agent = new AgentOverChromeBridge();
try {
await agent.connectNewTabWithUrl('https://example.com');
console.log('Chrome Bridge connected');
console.log(await agent.getBrowserTabList());
} finally {
await agent.destroy();
}
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});
```
### 3. 运行并授权
```bash
pnpm exec tsx bridge-check.ts
```
运行后,Chrome 插件会弹出连接确认窗口,点击 **Allow** 允许本次连接(选择 **Always Allow** 可自动放行后续请求,后续可在插件的 Bridge Mode 面板中随时重置)。
连接成功后,Chrome 会新开标签页并访问 `example.com`,同时终端会输出 `Chrome Bridge connected` 及当前窗口的标签页列表。随后脚本执行完毕并自动断开连接,新开的标签页会保留在浏览器中。插件图标上的圆点颜色代表当前状态:黄色表示正在监听等待连接,绿色表示已建立连接(由于该示例执行完毕后即刻销毁 Agent,绿点会很快恢复为黄点)。

## 下一步
环境和 Playground 验证通过后,根据使用方式继续:
- **编写 YAML 测试**:通过 [Midscene Test](/zh/midscene-test/use.md) 创建项目、运行用例并查看报告。
- **编写自动化流程**:阅读[独立自动化脚本](/zh/sdk/standalone.md),选择 Chrome Bridge 示例。
- **查询平台接口**:阅读 [Chrome Bridge SDK API 参考](/zh/sdk/chrome-bridge.md),了解构造参数、平台方法和资源清理。
Playground 中保存的模型配置不会自动同步到测试或脚本进程。请将验证通过的配置写入项目的 `.env`,并按集成教程加载;设备连接工具、服务和权限仍需保持可用。
Midscene Test 的 Web 模板默认使用 Playwright。若要使用 Bridge,创建项目后需按[配置测试工程](/zh/midscene-test/configuration.md)管理 `AgentOverChromeBridge` 的连接与销毁,并通过 `createMidsceneNodes()` 注册 Agent;不能直接复用模板中的 Playwright 页面初始化。
Chrome Bridge 不提供 Playwright 的 `Page` 对象。如果要接入 Playwright Test,请改走 [Web 环境配置](/zh/platforms/web.md)。
[](#)
## 远程访问配置 {#remote-access-configuration}
默认情况下,Bridge Server 仅监听本机回环地址 `127.0.0.1`,只接受本机 Chrome 插件的连接。如果需要跨机器通信(例如脚本运行在机器 A,Chrome 浏览器运行在机器 B),需在两端同时配置远程访问:
**1. Server 端(Node.js 脚本)**
```typescript
// 方式一:监听所有网卡(0.0.0.0:3766)
const agent = new AgentOverChromeBridge({
allowRemoteAccess: true,
});
// 方式二:指定监听特定网卡 IP
const agent = new AgentOverChromeBridge({
host: '192.168.1.100',
port: 3766,
});
```
**2. Client 端(Chrome 插件)**
1. 打开 Chrome 插件侧边栏,切换到 **Bridge Mode** 面板。
2. 在 **Bridge Server URL** 输入框中填写服务端地址:
- 本机连接:`ws://localhost:3766`(默认)
- 远程连接:`ws://192.168.1.100:3766`(请替换为运行脚本的机器 IP)
3. 运行脚本,并在插件弹出的确认窗口中点击 **Allow**。

:::warning 安全提示
开启远程访问后,Bridge Server 将暴露在网络中。请务必注意:
- 仅在受信任的内网环境中使用;
- 配合防火墙规则限制可访问的源 IP;
- 切勿在公网环境中直接暴露该端口,以免带来安全风险。
:::
## 问题排查 {#faq}
### 插件一直未能连接
请依次排查:Chrome 浏览器是否已启动、Midscene 插件是否已启用,以及插件 Bridge Mode 面板中的 **Bridge Server URL** 是否与脚本监听的地址和端口一致(本机默认为 `ws://127.0.0.1:3766`)。如果是跨机器远程连接,还需确认脚本端已开启 `allowRemoteAccess: true` 或指定了正确的网卡 `host`,且目标端口未被防火墙拦截。
### 如何重新触发连接授权弹窗?
在插件的 Bridge Mode 面板中重置已保存的授权记录,然后重新运行脚本,插件即会再次弹出授权确认窗口。
### 模型环境变量应该配置在哪里?
调用 `aiAct`、`aiAssert` 等 AI 方法时,需在运行脚本的 Node.js 环境中完成[模型配置](/zh/model-api-setup.md)。插件 Playground 中填写的模型配置仅作用于 Playground 自身,不会同步给 Node.js 脚本。此外,上方的连接验证脚本仅测试桥接通信,连接成功不代表模型配置已就绪。
---
url: /zh/caching.md
---
> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.
# 缓存 AI 规划和定位
Midscene 支持缓存两类内容:AI 规划的步骤,以及匹配到的元素定位信息。前者可用于各类自动化任务,以减少 AI 模型调用次数并提升执行效率;后者中的 DOM 元素定位信息(XPath)在 Web 自动化任务中可显著减少重复定位开销,不过目前仅适用于 Web 场景,并且存在[一定局限性](#使用-xpath-缓存元素定位信息的局限性)。
**效果**
当缓存命中时,脚本的执行时间会显著降低。例如在如下案例中,执行耗时从51秒降低到了28秒。
- **before**

- **after**

## 缓存文件和存储
Midscene 的缓存机制基于输入的稳定性和输出的可复用性。当相同的任务指令在相似的页面环境下重复执行时,Midscene 会优先使用已缓存的结果,避免重复调用 AI 模型,从而显著提升执行效率。
缓存的核心机制包括:
- **任务指令缓存**:对于规划类操作(如 `ai`、`aiAct`),Midscene 会将 prompt 指令作为缓存键,存储 AI 返回的执行计划
- **元素定位缓存(仅 Web)**:对于定位类操作(如 `aiLocate`、`aiTap`),系统会将定位 prompt 作为缓存键,存储元素的 XPath 信息,下次执行时先验证 XPath 是否仍然有效
- **失效机制**:当缓存失效时,系统会自动回退到 AI 模型重新分析
- **规划缓存回退**:如果缓存的 `aiAct` 规划在运行时失败,例如偶现弹窗本次没有出现,Midscene 会在本次运行中回退到正常 AI 规划,并清空这条过期规划缓存的 flow
- **永不缓存查询结果**:查询类操作(如 `aiBoolean`、`aiQuery`、`aiAssert`)不会被缓存
当发生规划缓存回退时,即使本次回退规划成功,Midscene 也不会把回退生成的 flow 写回原 prompt 的规划缓存。因为失败前的缓存步骤可能已经部分改变页面状态,回退规划得到的 flow 不一定适用于从初始页面重新执行。下一次运行相同 prompt 时,这条空 flow 会被视为不可用缓存,并重新生成完整的规划缓存。
缓存内容会保存到 `./midscene_run/cache` 目录下,以 `.cache.yaml` 为扩展名。
如果缓存未命中,Midscene 将会重新调用 AI 模型,并更新缓存文件。
## 缓存策略
通过配置 `cache` 选项,你可以为 Agent 启用缓存。
### 禁用缓存
配置方式:`cache: false` 或不配置 `cache` 选项
完全禁用缓存功能,每次都重新调用 AI 模型。适合需要实时结果或调试时使用。默认情况下,如果不配置 `cache` 选项,缓存是禁用状态。
```javascript
// 直接创建 Agent
const agent = new PuppeteerAgent(page, {
cache: false,
});
```
```yaml
# YAML 配置
agent:
cache: false
```
### 读写模式
配置方式:`cache: { id: "my-cache-id" }` 或 `cache: { strategy: "read-write", id: "my-cache-id" }`
自动读取已有缓存,执行过程中自动更新缓存文件。`strategy` 的默认值是 `read-write`。
```javascript
// 直接创建 Agent - 显式设置 cache ID
const agent = new PuppeteerAgent(page, {
cache: { id: "my-cache-id" },
});
// 显式指定 strategy
const agent = new PuppeteerAgent(page, {
cache: { strategy: "read-write", id: "my-cache-id" },
});
```
```yaml
# YAML 配置 - 显式设置 cache ID
agent:
cache:
id: "my-cache-test"
# 显式指定 strategy
agent:
cache:
id: "my-cache-test"
strategy: "read-write"
```
YAML 模式还支持配置 `cache: true`,自动使用文件名作为 cache ID。
### 只读,手动写入
配置方式:`cache: { strategy: "read-only", id: "my-cache-id" }`
只读取缓存,不自动写入缓存文件,需要手动调用 `agent.flushCache()` 写入缓存文件,适合生产环境,确保缓存的一致性
```javascript
// 直接创建 Agent
const agent = new PuppeteerAgent(page, {
cache: { strategy: "read-only", id: "my-cache-id" },
});
// 需要手动写入缓存
await agent.flushCache();
```
```yaml
# YAML 配置
agent:
cache:
id: "my-cache-test"
strategy: "read-only"
```
### 只写模式
配置方式:`cache: { strategy: "write-only", id: "my-cache-id" }`
只写入缓存,不读取已有缓存内容。每次执行时都会调用 AI 模型,并将结果写入缓存文件。适合初次建立缓存或更新缓存时使用。
```javascript
// 直接创建 Agent
const agent = new PuppeteerAgent(page, {
cache: { strategy: "write-only", id: "my-cache-id" },
});
```
```yaml
# YAML 配置
agent:
cache:
id: "my-cache-test"
strategy: "write-only"
```
### 兼容方式(不推荐)
通过环境变量 `MIDSCENE_CACHE=1` 配合 cacheId 配置,等同于读写模式。
```javascript
// 旧方式,需要 MIDSCENE_CACHE=1 环境变量和 cacheId
const agent = new PuppeteerAgent(originPage, {
cacheId: 'puppeteer-swag-sab'
});
```
```bash
MIDSCENE_CACHE=1 tsx demo.ts
```
## 使用 Midscene 的 Playwright AI Fixture
在使用 `@midscene/web/playwright` 中的 `PlaywrightAiFixture` 时,可以通过相同的 `cache` 配置来管理缓存行为。
### 禁用缓存
```typescript
// fixture.ts in sample code
export const test = base.extend(
PlaywrightAiFixture({
cache: false,
}),
);
```
### 读写模式
```typescript
// 对应样例代码中的 fixture.ts
// 自动生成 cache ID(基于测试信息)
export const test = base.extend(
PlaywrightAiFixture({
cache: true,
}),
);
// 对应样例代码中的 fixture.ts
// 显式指定 cache ID
export const test = base.extend(
PlaywrightAiFixture({
cache: { id: "my-fixture-cache" },
}),
);
```
### 只读,手动写入
```typescript
// 对应样例代码中的 fixture.ts
export const test = base.extend(
PlaywrightAiFixture({
cache: { strategy: "read-only", id: "readonly-cache" },
}),
);
```
在只读模式下,需要在测试步骤完成后手动将缓存写入文件。可以通过 fixture 提供的 `agentForPage` 方法获取底层 agent,然后在需要持久化的时刻调用 `agent.flushCache()`:
```typescript
test.afterEach(async ({ page, agentForPage }, testInfo) => {
// Only flush cache if the test passed
if (testInfo.status === 'passed') {
console.log('Test passed, flushing Midscene cache...');
const agent = await agentForPage(page);
await agent.flushCache();
} else {
console.log(`Test ${testInfo.status}, skipping Midscene cache flush.`);
}
});
test('manual cache flush', async ({ agentForPage, page, aiTap, aiWaitFor }) => {
const agent = await agentForPage(page);
await aiTap('first highlighted link in the hero section');
await aiWaitFor('the detail page loads completely');
await agent.flushCache();
});
```
### 只写模式
```typescript
// 对应样例代码中的 fixture.ts
export const test = base.extend(
PlaywrightAiFixture({
cache: { strategy: "write-only", id: "write-only-cache" },
}),
);
```
在只写模式下,每次测试都会调用 AI 模型,并将结果自动写入缓存文件,不会读取已有缓存。
## 缓存清理
Midscene 支持在写入缓存时清理未使用的缓存记录,确保缓存文件保持精简。这个功能是**完全手动**的,需要显式调用 `agent.flushCache({ cleanUnused: true })`。
### 手动清理机制
当调用 `agent.flushCache({ cleanUnused: true })` 时,系统会:
1. **保留使用过的缓存**:本次运行中被匹配和使用的缓存记录会被保留
2. **保留新增的缓存**:本次运行中新生成的缓存记录会被保留
3. **删除未使用的缓存**:旧的、未被使用的缓存记录会被自动删除
4. **写入文件**:清理后的缓存会被写入文件
### 使用方式
**在测试的 afterEach 中统一调用:**
```javascript
describe('test suite', () => {
let resetFn: () => Promise;
let agent: PuppeteerAgent;
afterEach(async () => {
// 清理缓存并写入文件
if (agent) {
await agent.flushCache({ cleanUnused: true });
}
// 再关闭页面
if (resetFn) {
await resetFn();
}
});
it('test case', async () => {
const { originPage, reset } = await launchPage('https://example.com/');
resetFn = reset;
agent = new PuppeteerAgent(originPage, {
cache: { id: 'my-cache-id' },
});
// ... test logic
});
});
```
**Playwright AI Fixture 用户:**
```typescript
test.afterEach(async ({ page, agentForPage }) => {
const agent = await agentForPage(page);
await agent.flushCache({ cleanUnused: true });
});
```
### 清理行为说明
- **read-write 模式**:调用 `flushCache({ cleanUnused: true })` 会清理并写入文件
- **read-only 模式**:调用 `flushCache({ cleanUnused: true })` 也会清理并写入文件(手动 flush 覆盖 read-only 限制)
- **write-only 模式**:不执行清理(因为不读取缓存)
**注意**:如果不传 `cleanUnused: true` 参数,`flushCache()` 只会写入文件而不会清理未使用的缓存。
## FAQ
### 没有生成缓存文件
请确认你已正确配置缓存:
1. **直接创建 Agent**: 在构造函数中设置 `cache: { id: "your-cache-id" }`
2. **Playwright AI Fixture 模式**: 在 fixture 配置中设置 `cache: true` 或 `cache: { id: "your-cache-id" }`
3. **YAML 脚本模式**: 在 YAML 文件中设置 `agent.cache.id`
4. **只读模式**: 确保调用了 `agent.flushCache()` 方法
5. **旧方式**: 设置了 `cacheId` 并启用了 `MIDSCENE_CACHE=1` 环境变量
### 如何检查缓存是否命中?
你可以查看报告文件。如果缓存命中,你将看到 `cache` 提示,并且执行时间大幅降低。
### 为什么在 CI 中无法命中缓存?
你需要在 CI 中将缓存文件提交到仓库中,并再次检查缓存命中的条件。
### 如果有了缓存,是否就不需要 AI 服务了?
不是的。
缓存是加速脚本执行的手段,但它不是确保脚本长期稳定执行的工具。我们注意到,当页面发生变化时,缓存可能会失效(例如当元素 DOM 结构发生变化时)。在缓存失效时,Midscene 仍然需要调用 AI 服务来重新执行任务。
### 如何手动删除缓存?
你可以删除 `./midscene_run/cache` 目录中的缓存文件,或者编辑缓存文件的内容。
### 如果我想禁用单个 API 的缓存,怎么办?
你可以使用 `cacheable` 选项来禁用单个 API 的缓存。
具体用法请参考对应 [API](/zh/reference.md#common) 的文档。
### 使用 XPath 缓存元素定位信息的局限性
Midscene 使用 [XPath](https://developer.mozilla.org/en-US/docs/Web/XML/XPath) 来缓存元素定位信息。我们使用相对严格的策略来防止误匹配。在以下情况下,缓存不会命中:
1. 新元素在相同的 XPath 下的文本内容与缓存元素不同。
2. 页面的 DOM 结构与缓存时的结构不同。
此外,由于元素定位缓存依赖 DOM 结构,以下场景无法使用缓存功能:
1. **Canvas 元素**:Canvas 内部的图形内容不存在 DOM 节点,无法通过 XPath 定位。
2. **跨域 iframe**:浏览器安全策略限制了对跨域 iframe 内部 DOM 的访问。
3. **Shadow DOM(closed 模式)**:封闭的 Shadow DOM 无法从外部访问其内部结构。
4. **WebGL / SVG 动态内容**:动态生成的图形内容可能没有稳定的 DOM 结构。
当缓存未命中或不可用时,Midscene 将回退到使用 AI 服务来查找元素。
### 获取缓存相关的调试日志
在环境变量中配置 `DEBUG=midscene:cache:*`,你可以看到缓存相关的调试日志。
---
url: /zh/changelog.md
---
> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.
# 更新日志
## v1.18.2
### 完整变更
#### 新特性 🎉
- feat(android): expose an optional scrcpy encoder frame-rate hint by @quanruzhuoxiu in [https://github.com/web-infra-dev/midscene/pull/3416](https://github.com/web-infra-dev/midscene/pull/3416)
#### 问题修复 🐞
- fix(core): scale model scroll distances from input image pixels by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3392](https://github.com/web-infra-dev/midscene/pull/3392)
- fix(site): use www documentation domain and repair outdated links by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3412](https://github.com/web-infra-dev/midscene/pull/3412)
- fix(core): reuse Jev reference images across planning rounds by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3407](https://github.com/web-infra-dev/midscene/pull/3407)
- fix(core): distinguish request and parse retry counts by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3417](https://github.com/web-infra-dev/midscene/pull/3417)
- fix(core): honor planner cache policy throughout aiAct by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3418](https://github.com/web-infra-dev/midscene/pull/3418)
#### 重构 ♻️
- refactor(core): reuse OpenRouter detection for Jev by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3405](https://github.com/web-infra-dev/midscene/pull/3405)
- refactor(core): clarify UI context naming by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3410](https://github.com/web-infra-dev/midscene/pull/3410)
#### 文档 📖
- docs(site): document Ling 3.2 Flash model configuration by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3406](https://github.com/web-infra-dev/midscene/pull/3406)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.18.1...v1.18.2](https://github.com/web-infra-dev/midscene/compare/v1.18.1...v1.18.2)
## v1.18.1
### 完整变更
#### 新特性 🎉
- feat(core): add observe test runner node by @codeestX in [https://github.com/web-infra-dev/midscene/pull/3393](https://github.com/web-infra-dev/midscene/pull/3393)
#### 问题修复 🐞
- fix(core): unwrap Qwen3 locate response arrays by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3400](https://github.com/web-infra-dev/midscene/pull/3400)
#### 文档 📖
- docs(site): add Hy4 flash to model configuration by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3399](https://github.com/web-infra-dev/midscene/pull/3399)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.18.0...v1.18.1](https://github.com/web-infra-dev/midscene/compare/v1.18.0...v1.18.1)
## v1.18.0
### 亮点
#### 大量新模型接入
本次版本包含以下三个 UI 自动化模型的适配:
- **千问 4 Max**(`qwen4-max`),模型 Family 为 `qwen4`。[千问配置指南](https://www.midscenejs.com/zh/model-api-setup#qwen)
- **腾讯混元 4**(`hy4`),模型 Family 为 `tencent-hy`。[腾讯混元配置指南](https://www.midscenejs.com/zh/model-api-setup#tencent-hy)
- **阶跃星辰 Step 3.7 Flash**(`step-3.7-flash`),模型 Family 为 `step`。[阶跃星辰配置指南](https://www.midscenejs.com/zh/model-api-setup#stepfun)
### 完整变更
#### 新特性 🎉
- feat(core): add OpenRouter reasoning parameter support by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3375](https://github.com/web-infra-dev/midscene/pull/3375)
- feat(core): add StepFun model adapter by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3391](https://github.com/web-infra-dev/midscene/pull/3391)
- feat(core): add Qwen4 model adapter by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3397](https://github.com/web-infra-dev/midscene/pull/3397)
#### 问题修复 🐞
- fix(test): keep failure frames from the project's own packages folders by @gjreddy in [https://github.com/web-infra-dev/midscene/pull/3377](https://github.com/web-infra-dev/midscene/pull/3377)
- fix(test): escape Case and project names in the GitHub job summary by @gjreddy in [https://github.com/web-infra-dev/midscene/pull/3378](https://github.com/web-infra-dev/midscene/pull/3378)
- fix(core): clarify pinch distance semantics and API distance documentation by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3386](https://github.com/web-infra-dev/midscene/pull/3386)
- fix(core): include execution ID in Jev requests by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3389](https://github.com/web-infra-dev/midscene/pull/3389)
#### 重构 ♻️
- refactor(core): centralize OpenRouter reasoning parameters by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3388](https://github.com/web-infra-dev/midscene/pull/3388)
#### 文档 📖
- docs(site): homepage copy clarity by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3382](https://github.com/web-infra-dev/midscene/pull/3382)
- docs(site): align Android preparation Node.js requirement by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3383](https://github.com/web-infra-dev/midscene/pull/3383)
- docs(site): add Tencent HY API setup and model cards by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3372](https://github.com/web-infra-dev/midscene/pull/3372)
- docs(site): add Browser Use as a CDP WebSocket URL source by @gregpr07 in [https://github.com/web-infra-dev/midscene/pull/3289](https://github.com/web-infra-dev/midscene/pull/3289)
- docs(site): clarify model initialization config overrides by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3387](https://github.com/web-infra-dev/midscene/pull/3387)
#### 其他变更
- revert(report): remove animated webp report poc by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3390](https://github.com/web-infra-dev/midscene/pull/3390)
#### 新贡献者
- @gregpr07 made their first contribution in [https://github.com/web-infra-dev/midscene/pull/3289](https://github.com/web-infra-dev/midscene/pull/3289)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.17.8...v1.18.0](https://github.com/web-infra-dev/midscene/compare/v1.17.8...v1.18.0)
## v1.17.8
### 完整变更
#### 新特性 🎉
- feat(core): add Tencent HY model adapter by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3362](https://github.com/web-infra-dev/midscene/pull/3362)
- feat(test): remove automatic credential redaction from run artifacts by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3371](https://github.com/web-infra-dev/midscene/pull/3371)
- feat(badge): support skipped test counts by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3380](https://github.com/web-infra-dev/midscene/pull/3380)
#### 问题修复 🐞
- fix(webdriver): enforce request timeout through response body reads by @quanru in [https://github.com/web-infra-dev/midscene/pull/3232](https://github.com/web-infra-dev/midscene/pull/3232)
- fix(web-integration): honor explicit slow swipe durations by @quanru in [https://github.com/web-infra-dev/midscene/pull/3243](https://github.com/web-infra-dev/midscene/pull/3243)
- fix(core): clarify aiScroll node locator guidance by @codeestX in [https://github.com/web-infra-dev/midscene/pull/3353](https://github.com/web-infra-dev/midscene/pull/3353)
- fix(core): update vulnerable runtime dependencies by @quanru in [https://github.com/web-infra-dev/midscene/pull/3356](https://github.com/web-infra-dev/midscene/pull/3356)
- fix(badge): don't round a pass rate with failures to 100% by @gjreddy in [https://github.com/web-infra-dev/midscene/pull/3343](https://github.com/web-infra-dev/midscene/pull/3343)
- fix(test): show paths literally in the GitHub job summary by @gjreddy in [https://github.com/web-infra-dev/midscene/pull/3334](https://github.com/web-infra-dev/midscene/pull/3334)
- fix(workflow): upgrade security dependencies without overrides by @quanru in [https://github.com/web-infra-dev/midscene/pull/3358](https://github.com/web-infra-dev/midscene/pull/3358)
- fix(android): measure planning-frame age after clock recalibration by @wannT-1 in [https://github.com/web-infra-dev/midscene/pull/3364](https://github.com/web-infra-dev/midscene/pull/3364)
- fix(android): keep the reset packet count in the post-reset timeout error by @gjreddy in [https://github.com/web-infra-dev/midscene/pull/3363](https://github.com/web-infra-dev/midscene/pull/3363)
- fix(core): handle GPT image-edge bboxes and separate coordinate semantics by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3368](https://github.com/web-infra-dev/midscene/pull/3368)
- fix(test): omit misleading badges for failed runs by @quanru in [https://github.com/web-infra-dev/midscene/pull/3370](https://github.com/web-infra-dev/midscene/pull/3370)
- fix(test): keep parentheses in the file path of a failure frame by @gjreddy in [https://github.com/web-infra-dev/midscene/pull/3369](https://github.com/web-infra-dev/midscene/pull/3369)
- fix(ios): bound scroll gestures and propagate boundary failures by @quanru in [https://github.com/web-infra-dev/midscene/pull/3253](https://github.com/web-infra-dev/midscene/pull/3253)
- fix(harmony): reject reversed and stationary edge scrolls by @quanru in [https://github.com/web-infra-dev/midscene/pull/3241](https://github.com/web-infra-dev/midscene/pull/3241)
- fix(android): reject scrolls without room to move by @quanru in [https://github.com/web-infra-dev/midscene/pull/3242](https://github.com/web-infra-dev/midscene/pull/3242)
- fix(core): add quick mappings for scroll and swipe directions by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3156](https://github.com/web-infra-dev/midscene/pull/3156)
- fix(core): deduplicate cumulative planning context by @quanru in [https://github.com/web-infra-dev/midscene/pull/3254](https://github.com/web-infra-dev/midscene/pull/3254)
- fix(test): keep project config stable when filtering test paths by @gjreddy in [https://github.com/web-infra-dev/midscene/pull/3332](https://github.com/web-infra-dev/midscene/pull/3332)
- fix(web-integration): improve static report playground execution by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3090](https://github.com/web-infra-dev/midscene/pull/3090)
- fix(core): preserve invalid System One responses in reports by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3379](https://github.com/web-infra-dev/midscene/pull/3379)
#### 文档 📖
- docs(site): add interactive get started guide by @ottomao in [https://github.com/web-infra-dev/midscene/pull/3335](https://github.com/web-infra-dev/midscene/pull/3335)
- docs(site): clarify MobileWorld GUI-only scope by @simplyme0823 in [https://github.com/web-infra-dev/midscene/pull/2901](https://github.com/web-infra-dev/midscene/pull/2901)
#### 测试 🧪
- test(workflow): finish migration to rstest and document SDK integration by @quanru in [https://github.com/web-infra-dev/midscene/pull/3359](https://github.com/web-infra-dev/midscene/pull/3359)
- test(android): isolate anonymous release asset fallback from CI tokens by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3381](https://github.com/web-infra-dev/midscene/pull/3381)
#### CI 与维护 ⚙️
- chore(workflow): track midscene-action v1 tag by @await-ovo in [https://github.com/web-infra-dev/midscene/pull/3350](https://github.com/web-infra-dev/midscene/pull/3350)
#### 新贡献者
- @gjreddy made their first contribution in [https://github.com/web-infra-dev/midscene/pull/3343](https://github.com/web-infra-dev/midscene/pull/3343)
- @wannT-1 made their first contribution in [https://github.com/web-infra-dev/midscene/pull/3364](https://github.com/web-infra-dev/midscene/pull/3364)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.17.7...v1.17.8](https://github.com/web-infra-dev/midscene/compare/v1.17.7...v1.17.8)
## v1.17.7
### 完整变更
#### 新特性 🎉
- feat(test): unify runtime artifact directories (PR3) by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3338](https://github.com/web-infra-dev/midscene/pull/3338)
#### CI 与维护 ⚙️
- chore(core): support configurable locate prompt order and grouping by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3348](https://github.com/web-infra-dev/midscene/pull/3348)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.17.6...v1.17.7](https://github.com/web-infra-dev/midscene/compare/v1.17.6...v1.17.7)
## v1.17.6
### 完整变更
#### 新特性 🎉
- feat(badge): localize and redesign badge homepage by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3341](https://github.com/web-infra-dev/midscene/pull/3341)
- feat(test): add summary badges and improve badge site metadata by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3342](https://github.com/web-infra-dev/midscene/pull/3342)
- feat(web-integration): add CLI browser tab management by @quanru in [https://github.com/web-infra-dev/midscene/pull/3302](https://github.com/web-infra-dev/midscene/pull/3302)
- feat(core): expose public SIWC authorization entry by @quanru in [https://github.com/web-infra-dev/midscene/pull/3349](https://github.com/web-infra-dev/midscene/pull/3349)
#### 问题修复 🐞
- fix(workflow): use dedicated badge deployment token by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3340](https://github.com/web-infra-dev/midscene/pull/3340)
- fix(core): clarify external abort errors by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3320](https://github.com/web-infra-dev/midscene/pull/3320)
- fix(core): respect model proxy settings in SIWC requests by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3330](https://github.com/web-infra-dev/midscene/pull/3330)
- fix(core): preserve arrays in aiQuery JSON responses by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3345](https://github.com/web-infra-dev/midscene/pull/3345)
- fix(core): locate Jev targets without a presence check by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3347](https://github.com/web-infra-dev/midscene/pull/3347)
#### 性能优化 🚀
- perf(workflow): speed up CI with bounded AI concurrency by @quanru in [https://github.com/web-infra-dev/midscene/pull/3333](https://github.com/web-infra-dev/midscene/pull/3333)
#### 测试 🧪
- test(report): run e2e files with isolated contexts at concurrency 3 by @await-ovo in [https://github.com/web-infra-dev/midscene/pull/3346](https://github.com/web-infra-dev/midscene/pull/3346)
#### CI 与维护 ⚙️
- chore(badge): add badge service with GitHub Actions deployment by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3339](https://github.com/web-infra-dev/midscene/pull/3339)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.17.5...v1.17.6](https://github.com/web-infra-dev/midscene/compare/v1.17.5...v1.17.6)
## v1.17.5
### 完整变更
#### 新特性 🎉
- feat(test): host Agent records in unified reports (PR2) by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3326](https://github.com/web-infra-dev/midscene/pull/3326)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.17.4...v1.17.5](https://github.com/web-infra-dev/midscene/compare/v1.17.4...v1.17.5)
## v1.17.4
### 完整变更
#### 新特性 🎉
- feat(core): add mouse action: aiMiddleClick by @lufy90 in [https://github.com/web-infra-dev/midscene/pull/2812](https://github.com/web-infra-dev/midscene/pull/2812)
#### 问题修复 🐞
- fix(core): preserve nested custom action parameter descriptions by @advance-hub in [https://github.com/web-infra-dev/midscene/pull/3305](https://github.com/web-infra-dev/midscene/pull/3305)
- fix(web-integration): honor replace mode for focused inputs without locate by @advance-hub in [https://github.com/web-infra-dev/midscene/pull/3296](https://github.com/web-infra-dev/midscene/pull/3296)
- fix(web-integration): align action hook option types with runtime arguments by @advance-hub in [https://github.com/web-infra-dev/midscene/pull/3322](https://github.com/web-infra-dev/midscene/pull/3322)
- fix(core): skip dump serialization without update listeners by @advance-hub in [https://github.com/web-infra-dev/midscene/pull/3323](https://github.com/web-infra-dev/midscene/pull/3323)
- fix(core): replace numbered point callout with badge-neutral centered marker by @NianZheChao in [https://github.com/web-infra-dev/midscene/pull/3096](https://github.com/web-infra-dev/midscene/pull/3096)
- fix(recorder): preserve input events across field changes and stop by @dakjdakd in [https://github.com/web-infra-dev/midscene/pull/3192](https://github.com/web-infra-dev/midscene/pull/3192)
- fix(test): publish GitHub summaries from the executable entry by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3321](https://github.com/web-infra-dev/midscene/pull/3321)
#### 文档 📖
- docs(site): redesign homepage feature sections by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3317](https://github.com/web-infra-dev/midscene/pull/3317)
#### CI 与维护 ⚙️
- chore(site): add provider selection to model configuration cards by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3328](https://github.com/web-infra-dev/midscene/pull/3328)
#### 新贡献者
- @advance-hub made their first contribution in [https://github.com/web-infra-dev/midscene/pull/3305](https://github.com/web-infra-dev/midscene/pull/3305)
- @lufy90 made their first contribution in [https://github.com/web-infra-dev/midscene/pull/2812](https://github.com/web-infra-dev/midscene/pull/2812)
- @NianZheChao made their first contribution in [https://github.com/web-infra-dev/midscene/pull/3096](https://github.com/web-infra-dev/midscene/pull/3096)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.17.3...v1.17.4](https://github.com/web-infra-dev/midscene/compare/v1.17.3...v1.17.4)
## v1.17.3
### 完整变更
#### 新特性 🎉
- feat(core): add ant-ling model adapter by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3315](https://github.com/web-infra-dev/midscene/pull/3315)
- feat(report): add directory report artifact foundation (PR1) by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3312](https://github.com/web-infra-dev/midscene/pull/3312)
#### 重构 ♻️
- refactor(core): rename supportedTaskTypes to allowedTaskTypes by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3314](https://github.com/web-infra-dev/midscene/pull/3314)
#### 文档 📖
- docs(site): clarify test entry points by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3310](https://github.com/web-infra-dev/midscene/pull/3310)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.17.2...v1.17.3](https://github.com/web-infra-dev/midscene/compare/v1.17.2...v1.17.3)
## v1.17.2
### 完整变更
#### 新特性 🎉
- feat(core): support custom endpoints for System One models by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3301](https://github.com/web-infra-dev/midscene/pull/3301)
#### 问题修复 🐞
- fix(core): allow Jev as default model for supported tasks by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3308](https://github.com/web-infra-dev/midscene/pull/3308)
- fix(core): support Gemini 4 Argon by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3309](https://github.com/web-infra-dev/midscene/pull/3309)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.17.1...v1.17.2](https://github.com/web-infra-dev/midscene/compare/v1.17.1...v1.17.2)
## v1.17.1
### 完整变更
#### 新特性 🎉
- feat(test): support namespaces for Midscene Nodes by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3300](https://github.com/web-infra-dev/midscene/pull/3300)
#### 问题修复 🐞
- fix(workflow): preserve MDX in release highlights by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3298](https://github.com/web-infra-dev/midscene/pull/3298)
- fix(site): restore v1.17 changelog videos by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3299](https://github.com/web-infra-dev/midscene/pull/3299)
#### 文档 📖
- docs(site): sdk docs restructure by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3297](https://github.com/web-infra-dev/midscene/pull/3297)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.17.0...v1.17.1](https://github.com/web-infra-dev/midscene/compare/v1.17.0...v1.17.1)
## v1.17.0
### 亮点
#### 使用 ChatGPT 订阅额度
通过 Sign in with ChatGPT(SIWC)授权 Midscene,使用 ChatGPT 订阅额度调用 GPT 模型。下面的视频演示浏览器插件中的登录授权流程。接入方式详见[使用 ChatGPT 订阅](https://www.midscenejs.com/zh/chatgpt-subscription)。
#### Jev 1.14 实验性支持
Jev 可用于任务规划、定位和判断,并与通用默认模型协同完成输入等任务。接入方式及限制详见 [Jev 配置指南](https://www.midscenejs.com/zh/model-api-setup#jev)。
以下数据来自演示中的单次运行,“单步”指一次模型调用,耗时不包含页面操作和等待。费用单位为美元,按 Jev 输入 $0.042 / 百万 Token、输出免费计算。
##### 水果连连看:纯 Jev
Jev 独立完成点击与定位,消除所有水果配对,直到剩余配对数为 0。[查看运行报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/showcases/jev/fruits-tile-matching-report.html)。
- 单步模型耗时:平均 **0.887 秒**,P50 **0.774 秒**。
- 输入消耗:平均每步 **6,761.4 Token**,总计 **101,421 Token**。
- 模型费用:平均每步 **$0.000284**,总计 **$0.00426**。
##### 注册表单:Jev + DeepSeek
Jev 负责点击、定位、性别下拉框选择和完成判断;DeepSeek 生成邮箱、密码和用户名等输入内容,共同完成注册表单。[查看运行报告](https://lf3-static.bytednsdoc.com/obj/eden-cn/luljzkpt/ljhwZthlaukjlkulzlp/showcases/jev/register-form-report.html)。
以下数据**仅统计 Jev,不包含 DeepSeek**:
- 单步模型耗时:平均 **0.583 秒**,P50 **0.559 秒**。
- 输入消耗:平均每步 **5,265.8 Token**,总计 **68,455 Token**。
- 模型费用:平均每步 **$0.000221**,总计 **$0.002875**。
### 完整变更
#### 问题修复 🐞
- fix(chrome-extension): keep recorder screenshots on their source tab by @dakjdakd in [https://github.com/web-infra-dev/midscene/pull/3194](https://github.com/web-infra-dev/midscene/pull/3194)
- fix(workflow): stabilize Studio notarization and unblock release notices by @quanru in [https://github.com/web-infra-dev/midscene/pull/3294](https://github.com/web-infra-dev/midscene/pull/3294)
#### 重构 ♻️
- refactor(core): restructure Jev integration and planning delegation by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3295](https://github.com/web-infra-dev/midscene/pull/3295)
#### 新贡献者
- @dakjdakd made their first contribution in [https://github.com/web-infra-dev/midscene/pull/3194](https://github.com/web-infra-dev/midscene/pull/3194)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.16.5...v1.17.0](https://github.com/web-infra-dev/midscene/compare/v1.16.5...v1.17.0)
## v1.16.5
### 完整变更
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.16.4...v1.16.5](https://github.com/web-infra-dev/midscene/compare/v1.16.4...v1.16.5)
## v1.16.4
### 完整变更
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.16.3...v1.16.4](https://github.com/web-infra-dev/midscene/compare/v1.16.3...v1.16.4)
## v1.16.3
### 完整变更
#### 新特性 🎉
- feat(core): add SIWC auth mode and Chrome extension sign-in by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3287](https://github.com/web-infra-dev/midscene/pull/3287)
#### 文档 📖
- docs(site): make model configuration sections easier to discover by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3292](https://github.com/web-infra-dev/midscene/pull/3292)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.16.2...v1.16.3](https://github.com/web-infra-dev/midscene/compare/v1.16.2...v1.16.3)
## v1.16.2
### 完整变更
#### 新特性 🎉
- feat(test): redesign CLI reporting and model usage summaries by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3285](https://github.com/web-infra-dev/midscene/pull/3285)
#### 问题修复 🐞
- fix(workflow): diagnose Chrome Web Store OAuth failures by @quanru in [https://github.com/web-infra-dev/midscene/pull/3284](https://github.com/web-infra-dev/midscene/pull/3284)
- fix(core): keep trailing parenthesis in auto-glm finish message by @kwy404 in [https://github.com/web-infra-dev/midscene/pull/3190](https://github.com/web-infra-dev/midscene/pull/3190)
- fix(core): validate locate coordinate types strictly by @linhongyu510 in [https://github.com/web-infra-dev/midscene/pull/3068](https://github.com/web-infra-dev/midscene/pull/3068)
- fix(core): validate swipe action parameters by @linhongyu510 in [https://github.com/web-infra-dev/midscene/pull/3069](https://github.com/web-infra-dev/midscene/pull/3069)
- fix(workflow): build report dependencies and stabilize AI checks by @quanru in [https://github.com/web-infra-dev/midscene/pull/3290](https://github.com/web-infra-dev/midscene/pull/3290)
#### 文档 📖
- docs(site): reorganize model setup and debugging guides by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3288](https://github.com/web-infra-dev/midscene/pull/3288)
- docs(site): standardize navigation capitalization by @ottomao in [https://github.com/web-infra-dev/midscene/pull/3291](https://github.com/web-infra-dev/midscene/pull/3291)
#### 新贡献者
- @kwy404 made their first contribution in [https://github.com/web-infra-dev/midscene/pull/3190](https://github.com/web-infra-dev/midscene/pull/3190)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.16.1...v1.16.2](https://github.com/web-infra-dev/midscene/compare/v1.16.1...v1.16.2)
## v1.16.1
### 完整变更
#### 新特性 🎉
- feat(test): add file concurrency with maxConcurrentFiles by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3259](https://github.com/web-infra-dev/midscene/pull/3259)
#### 问题修复 🐞
- fix(playground): isolate reports between executions by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3252](https://github.com/web-infra-dev/midscene/pull/3252)
#### 文档 📖
- docs(site): add GitHub Actions guide for Midscene Test by @await-ovo in [https://github.com/web-infra-dev/midscene/pull/3263](https://github.com/web-infra-dev/midscene/pull/3263)
- docs(site): simplify GitHub Actions docs and link to Marketplace by @await-ovo in [https://github.com/web-infra-dev/midscene/pull/3276](https://github.com/web-infra-dev/midscene/pull/3276)
- docs(site): clarify Jev setup with combined model configuration by @ottomao in [https://github.com/web-infra-dev/midscene/pull/3277](https://github.com/web-infra-dev/midscene/pull/3277)
- docs(site): update introduction of GUI Agent by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3278](https://github.com/web-infra-dev/midscene/pull/3278)
- docs(site): clarify Midscene Test terminology and release status by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3279](https://github.com/web-infra-dev/midscene/pull/3279)
- docs(site): migrate introduction to the homepage by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3282](https://github.com/web-infra-dev/midscene/pull/3282)
#### 测试 🧪
- test(report): migrate report app e2e tests to midscene-test and publish CI reports by @await-ovo in [https://github.com/web-infra-dev/midscene/pull/3275](https://github.com/web-infra-dev/midscene/pull/3275)
#### 新贡献者
- @await-ovo made their first contribution in [https://github.com/web-infra-dev/midscene/pull/3263](https://github.com/web-infra-dev/midscene/pull/3263)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.16.0...v1.16.1](https://github.com/web-infra-dev/midscene/compare/v1.16.0...v1.16.1)
## v1.16.0
### 亮点
#### 接入 Jev 1.4:更快、更低成本的视觉 E2E 测试
Midscene 现已接入 Jev 1.4,继续沿着视觉理解的道路推进 UI 自动化。通过此次接入,开发者可以体验更快、更低成本的 E2E 测试。接入步骤和当前的实验性限制详见 [Jev 配置指南](https://www.midscenejs.com/zh/model-common-config#jev)。
在下方 Demo 的连连看游戏测试中,共进行了 28 次模型调用,平均每次模型推理耗时 **393.57 ms(约 0.39 秒)**。平均每次输入 **5,025 Token**、输出 **67 Token**,模型调用费用约 **$0.000211/次**。费用按输入 $0.042 / 百万 Token 计算,输出免费。
### 完整变更
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.15.6...v1.16.0](https://github.com/web-infra-dev/midscene/compare/v1.15.6...v1.16.0)
## v1.15.6
### 完整变更
#### 新特性 🎉
- feat(llm): add dedicated locate model configuration by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3268](https://github.com/web-infra-dev/midscene/pull/3268)
- feat(llm): add experimental Jev model support by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3271](https://github.com/web-infra-dev/midscene/pull/3271)
#### CI 与维护 ⚙️
- chore(core): redesign introduction page by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3267](https://github.com/web-infra-dev/midscene/pull/3267)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.15.5...v1.15.6](https://github.com/web-infra-dev/midscene/compare/v1.15.5...v1.15.6)
## v1.15.5
### 完整变更
#### 新特性 🎉
- feat(web): add Puppeteer test runner nodes by @quanru in [https://github.com/web-infra-dev/midscene/pull/3160](https://github.com/web-infra-dev/midscene/pull/3160)
- feat(report): redesign test report workspace and clarify execution details by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3245](https://github.com/web-infra-dev/midscene/pull/3245)
#### 问题修复 🐞
- fix(core): preserve aiAct reference images for independent locating by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3257](https://github.com/web-infra-dev/midscene/pull/3257)
- fix(ios): wait for input readiness and restore focus after clearing by @quanru in [https://github.com/web-infra-dev/midscene/pull/3239](https://github.com/web-infra-dev/midscene/pull/3239)
- fix(shared): preserve empty string CLI argument values by @quanru in [https://github.com/web-infra-dev/midscene/pull/3260](https://github.com/web-infra-dev/midscene/pull/3260)
- fix(core): align default scrolling across Android, iOS, and HarmonyOS by @resonlei in [https://github.com/web-infra-dev/midscene/pull/3225](https://github.com/web-infra-dev/midscene/pull/3225)
- fix(web-integration): preserve CLI viewport after disconnect by @quanru in [https://github.com/web-infra-dev/midscene/pull/3261](https://github.com/web-infra-dev/midscene/pull/3261)
- fix(test): validate wait options and preserve cross-module screenshots by @quanru in [https://github.com/web-infra-dev/midscene/pull/3246](https://github.com/web-infra-dev/midscene/pull/3246)
- fix(web-integration): launch cookie tests without sandbox on Linux CI by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3269](https://github.com/web-infra-dev/midscene/pull/3269)
#### CI 与维护 ⚙️
- chore(core): add a highlight section to release note by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3256](https://github.com/web-infra-dev/midscene/pull/3256)
#### 新贡献者
- @resonlei made their first contribution in [https://github.com/web-infra-dev/midscene/pull/3225](https://github.com/web-infra-dev/midscene/pull/3225)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.15.4...v1.15.5](https://github.com/web-infra-dev/midscene/compare/v1.15.4...v1.15.5)
## v1.15.4
### 完整变更
2026-10-14 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.15.4)
#### 新功能 🎉
- feat(test): add TodoMVC create starters and example sync by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3210](https://github.com/web-infra-dev/midscene/pull/3210)
#### 问题修复 🐞
- fix(site): restore x profile link in ios showcases by @ottomao in [https://github.com/web-infra-dev/midscene/pull/3145](https://github.com/web-infra-dev/midscene/pull/3145)
- fix(core): clarify planning cycle limit error by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3251](https://github.com/web-infra-dev/midscene/pull/3251)
#### 文档 📖
- docs(core): guide to use chatgpt subscription by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3248](https://github.com/web-infra-dev/midscene/pull/3248)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.15.3...v1.15.4](https://github.com/web-infra-dev/midscene/compare/v1.15.3...v1.15.4)
## v1.15.3
### 完整变更
2026-10-13 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.15.3)
#### 新功能 🎉
- feat(test): generate Markdown results after each test run by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3240](https://github.com/web-infra-dev/midscene/pull/3240)
#### 问题修复 🐞
- fix(test): clarify project creation guidance and test reference by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3229](https://github.com/web-infra-dev/midscene/pull/3229)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.15.2...v1.15.3](https://github.com/web-infra-dev/midscene/compare/v1.15.2...v1.15.3)
## v1.15.2
### 完整变更
2026-10-12 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.15.2)
#### 问题修复 🐞
- fix(core): drain cancelled operations before runner continuation by @codeestX in [https://github.com/web-infra-dev/midscene/pull/3216](https://github.com/web-infra-dev/midscene/pull/3216)
- fix(site): redirect historical documentation URLs by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3237](https://github.com/web-infra-dev/midscene/pull/3237)
- fix(workflow): centralize AI CI connection timeout by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3238](https://github.com/web-infra-dev/midscene/pull/3238)
- fix(report): retain test evidence and clarify execution failures by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3226](https://github.com/web-infra-dev/midscene/pull/3226)
#### 文档 📖
- docs(site): add Rome OS and reorder homepage users by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3231](https://github.com/web-infra-dev/midscene/pull/3231)
#### CI 与维护 ⚙️
- ci(workflow): increase AI network connection attempt timeout by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3230](https://github.com/web-infra-dev/midscene/pull/3230)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.15.1...v1.15.2](https://github.com/web-infra-dev/midscene/compare/v1.15.1...v1.15.2)
## v1.15.1
### 完整变更
2026-10-12 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.15.1)
#### 问题修复 🐞
- fix(test): load tsx through its ESM entry for project configs by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3227](https://github.com/web-infra-dev/midscene/pull/3227)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.15.0...v1.15.1](https://github.com/web-infra-dev/midscene/compare/v1.15.0...v1.15.1)
## v1.15.0
### 完整变更
2026-10-10 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.15.0)
#### 新功能 🎉
- feat(core): add custom action readiness hook by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3133](https://github.com/web-infra-dev/midscene/pull/3133)
- feat(test): add model verification command and setup guidance by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3209](https://github.com/web-infra-dev/midscene/pull/3209)
- feat(llm): configure model streaming and record call metadata by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3214](https://github.com/web-infra-dev/midscene/pull/3214)
- feat(cli): add ChatGPT SIWC login and refresh by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3215](https://github.com/web-infra-dev/midscene/pull/3215)
#### 问题修复 🐞
- fix(report): prepare timeline screenshots in atomic groups by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3211](https://github.com/web-infra-dev/midscene/pull/3211)
- fix(test): preserve CLI error stacks and causes by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3212](https://github.com/web-infra-dev/midscene/pull/3212)
#### 重构 ♻️
- refactor(cli): nest SIWC credentials with file metadata by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3220](https://github.com/web-infra-dev/midscene/pull/3220)
#### 文档 📖
- docs(site): refresh homepage messaging and layout by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3204](https://github.com/web-infra-dev/midscene/pull/3204)
#### CI 与维护 ⚙️
- chore(docs): update homepage by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3219](https://github.com/web-infra-dev/midscene/pull/3219)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.14.0...v1.15.0](https://github.com/web-infra-dev/midscene/compare/v1.14.0...v1.15.0)
## v1.14.0
### 完整变更
2026-09-29 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.14.0)
#### 新功能 🎉
- feat(web-integration): add BrowserAgent page selection actions by @quanru in [https://github.com/web-infra-dev/midscene/pull/2774](https://github.com/web-infra-dev/midscene/pull/2774)
- feat(test): add setAIContext node for midscene/test by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3188](https://github.com/web-infra-dev/midscene/pull/3188)
- feat(ios): support gateway WDA base URLs by @quanru in [https://github.com/web-infra-dev/midscene/pull/3187](https://github.com/web-infra-dev/midscene/pull/3187)
- feat(core): support Responses API with configuration and documentation by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3161](https://github.com/web-infra-dev/midscene/pull/3161)
#### 问题修复 🐞
- fix(core): record HTTP responses on model parsing failures by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3185](https://github.com/web-infra-dev/midscene/pull/3185)
- fix(site): restore legacy URLs and refresh favicon cache by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3198](https://github.com/web-infra-dev/midscene/pull/3198)
- fix(site): redirect retired documentation URLs by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3202](https://github.com/web-infra-dev/midscene/pull/3202)
- fix(cli): upgrade yargs for Node.js 26 compatibility by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3203](https://github.com/web-infra-dev/midscene/pull/3203)
#### 重构 ♻️
- refactor(core): configure locate result keys and aliases by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3189](https://github.com/web-infra-dev/midscene/pull/3189)
#### 文档 📖
- docs(site): consolidate images under a dedicated directory by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3186](https://github.com/web-infra-dev/midscene/pull/3186)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.13.3...v1.14.0](https://github.com/web-infra-dev/midscene/compare/v1.13.3...v1.14.0)
## v1.13.3
### 完整变更
2026-09-23 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.13.3)
#### 新功能 🎉
- feat(test): expose run health metrics and inline report assets by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3172](https://github.com/web-infra-dev/midscene/pull/3172)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.13.2...v1.13.3](https://github.com/web-infra-dev/midscene/compare/v1.13.2...v1.13.3)
## v1.13.2
### 完整变更
2026-09-23 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.13.2)
#### 问题修复 🐞
- fix(computer): avoid encoded PowerShell transport on Windows by @quanru in [https://github.com/web-infra-dev/midscene/pull/3166](https://github.com/web-infra-dev/midscene/pull/3166)
#### 文档 📖
- docs(site): add GPT-6 Sol and Luna model guidance by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3182](https://github.com/web-infra-dev/midscene/pull/3182)
- docs(site): add midscene-android and midscene-jev-runner to Awesome Midscene by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3179](https://github.com/web-infra-dev/midscene/pull/3179)
#### CI 与维护 ⚙️
- chore(test): generate separate node references for each project by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3181](https://github.com/web-infra-dev/midscene/pull/3181)
- chore(test): update spec for midscene test by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3184](https://github.com/web-infra-dev/midscene/pull/3184)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.13.1...v1.13.2](https://github.com/web-infra-dev/midscene/compare/v1.13.1...v1.13.2)
## v1.13.1
### 完整变更
2026-09-22 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.13.1)
#### 新功能 🎉
- feat(report): redesign test reports and unify timeline interactions by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3174](https://github.com/web-infra-dev/midscene/pull/3174)
#### 问题修复 🐞
- fix(cli): allow sequential YAML files to reuse one page by @quanru in [https://github.com/web-infra-dev/midscene/pull/3164](https://github.com/web-infra-dev/midscene/pull/3164)
#### 文档 📖
- docs(site): update Xiaomi MiMo model guidance by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3176](https://github.com/web-infra-dev/midscene/pull/3176)
#### CI 与维护 ⚙️
- chore(workflow): upgrade rstest to 0.12.0 by @fi3ework in [https://github.com/web-infra-dev/midscene/pull/3178](https://github.com/web-infra-dev/midscene/pull/3178)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.13.0...v1.13.1](https://github.com/web-infra-dev/midscene/compare/v1.13.0...v1.13.1)
## v1.13.0
### 完整变更
2026-09-20 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.13.0)
#### 新功能 🎉
- feat(test): unify native Test and legacy YAML execution and reporting by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3139](https://github.com/web-infra-dev/midscene/pull/3139)
#### 问题修复 🐞
- fix(report): support dark mobile tabs by @quanru in [https://github.com/web-infra-dev/midscene/pull/3162](https://github.com/web-infra-dev/midscene/pull/3162)
- fix(shared): enable declaration maps by @Amour1688 in [https://github.com/web-infra-dev/midscene/pull/3165](https://github.com/web-infra-dev/midscene/pull/3165)
#### 文档 📖
- docs(site): generalize GPT original detail limitations by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3163](https://github.com/web-infra-dev/midscene/pull/3163)
#### 新贡献者
- @Amour1688 made their first contribution in [https://github.com/web-infra-dev/midscene/pull/3165](https://github.com/web-infra-dev/midscene/pull/3165)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.12.9...v1.13.0](https://github.com/web-infra-dev/midscene/compare/v1.12.9...v1.13.0)
## v1.12.9
### 完整变更
2026-09-17 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.12.9)
#### 新功能 🎉
- feat(computer): support desktop swipe gestures by @quanru in [https://github.com/web-infra-dev/midscene/pull/3144](https://github.com/web-infra-dev/midscene/pull/3144)
- feat(core): expose device adapter schema and types by @quanru in [https://github.com/web-infra-dev/midscene/pull/3153](https://github.com/web-infra-dev/midscene/pull/3153)
- feat(report): support mobile steps and player views by @quanru in [https://github.com/web-infra-dev/midscene/pull/3155](https://github.com/web-infra-dev/midscene/pull/3155)
- feat(report): support portable step selectors by @quanru in [https://github.com/web-infra-dev/midscene/pull/3159](https://github.com/web-infra-dev/midscene/pull/3159)
- feat(test): support native ESM project configs by @quanru in [https://github.com/web-infra-dev/midscene/pull/3154](https://github.com/web-infra-dev/midscene/pull/3154)
#### 问题修复 🐞
- fix(harmony): convert swipe duration to HDC speed by @quanru in [https://github.com/web-infra-dev/midscene/pull/3149](https://github.com/web-infra-dev/midscene/pull/3149)
#### 重构 ♻️
- refactor(core): centralize model request lifecycle and protocol calls by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3147](https://github.com/web-infra-dev/midscene/pull/3147)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.12.8...v1.12.9](https://github.com/web-infra-dev/midscene/compare/v1.12.8...v1.12.9)
## v1.12.8
### 完整变更
2026-09-16 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.12.8)
#### 问题修复 🐞
- fix(core): retry invalid planning action parameters by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3138](https://github.com/web-infra-dev/midscene/pull/3138)
- fix(core): retry incomplete planning responses by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3146](https://github.com/web-infra-dev/midscene/pull/3146)
- fix(core): clarify scroll and swipe intent in planning by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3136](https://github.com/web-infra-dev/midscene/pull/3136)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.12.7...v1.12.8](https://github.com/web-infra-dev/midscene/compare/v1.12.7...v1.12.8)
## v1.12.7
### 完整变更
2026-09-15 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.12.7)
#### 问题修复 🐞
- fix(core): clarify and validate scroll and swipe actions by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3134](https://github.com/web-infra-dev/midscene/pull/3134)
- fix(computer): improve modifier-key input compatibility in desktop clients by @quanru in [https://github.com/web-infra-dev/midscene/pull/3124](https://github.com/web-infra-dev/midscene/pull/3124)
- fix(web-integration): reuse static UI context by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3089](https://github.com/web-infra-dev/midscene/pull/3089)
- fix(android-playground): preserve scrcpy GOP integrity by @quanru in [https://github.com/web-infra-dev/midscene/pull/3142](https://github.com/web-infra-dev/midscene/pull/3142)
- fix(core): record YAML sleep in reports without model dependencies by @quanru in [https://github.com/web-infra-dev/midscene/pull/3118](https://github.com/web-infra-dev/midscene/pull/3118)
- fix(shared): preserve schema-typed CLI strings by @quanru in [https://github.com/web-infra-dev/midscene/pull/3135](https://github.com/web-infra-dev/midscene/pull/3135)
- fix(computer): capture reliable opaque RDP screenshots by @quanru in [https://github.com/web-infra-dev/midscene/pull/3140](https://github.com/web-infra-dev/midscene/pull/3140)
#### 文档 📖
- docs(site): add application knowledge guide and update context examples by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3143](https://github.com/web-infra-dev/midscene/pull/3143)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.12.6...v1.12.7](https://github.com/web-infra-dev/midscene/compare/v1.12.6...v1.12.7)
## v1.12.6
### 完整变更
2026-09-10 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.12.6)
#### 新功能 🎉
- feat(report): add unified Midscene Test reports with visual debugging by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3109](https://github.com/web-infra-dev/midscene/pull/3109)
- feat(test): support project-scoped node registration by @LawisChen in [https://github.com/web-infra-dev/midscene/pull/3111](https://github.com/web-infra-dev/midscene/pull/3111)
#### 问题修复 🐞
- fix(core): collect streaming usage through stream completion by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3117](https://github.com/web-infra-dev/midscene/pull/3117)
- fix(core): preserve global model config with custom clients by @linhongyu510 in [https://github.com/web-infra-dev/midscene/pull/3094](https://github.com/web-infra-dev/midscene/pull/3094)
#### 重构 ♻️
- refactor(core): split model service caller by protocol by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3116](https://github.com/web-infra-dev/midscene/pull/3116)
- refactor(test): align platform test exports and clarify project docs by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3123](https://github.com/web-infra-dev/midscene/pull/3123)
#### 文档 📖
- docs(site): fix reference callout boundary and section headings by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3121](https://github.com/web-infra-dev/midscene/pull/3121)
- docs(site): update DeepSeek Flash model configuration by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3131](https://github.com/web-infra-dev/midscene/pull/3131)
#### CI 与维护 ⚙️
- chore(test): add model configuration template to .env.example and update README; adjust create command tests by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3115](https://github.com/web-infra-dev/midscene/pull/3115)
#### 新贡献者
- @LawisChen made their first contribution in [https://github.com/web-infra-dev/midscene/pull/3111](https://github.com/web-infra-dev/midscene/pull/3111)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.12.5...v1.12.6](https://github.com/web-infra-dev/midscene/compare/v1.12.5...v1.12.6)
## v1.12.5
### 完整变更
2026-09-08 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.12.5)
#### 新功能 🎉
- feat(test): add 'create' command to create testing project by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3102](https://github.com/web-infra-dev/midscene/pull/3102)
- feat(core): add GPT-6 adapter and model-specific Codex parameters by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3110](https://github.com/web-infra-dev/midscene/pull/3110)
#### 问题修复 🐞
- fix(computer): smooth native drag trajectory by @quanru in [https://github.com/web-infra-dev/midscene/pull/3098](https://github.com/web-infra-dev/midscene/pull/3098)
- fix(studio): restrict file exports and default local services to loopback by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3103](https://github.com/web-infra-dev/midscene/pull/3103)
- fix(visualizer): show aiAct output alongside report by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3091](https://github.com/web-infra-dev/midscene/pull/3091)
- fix(core): unify normalized coordinate mapping and rounding by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3113](https://github.com/web-infra-dev/midscene/pull/3113)
#### 重构 ♻️
- refactor(core): use authoritative centers throughout localization by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3100](https://github.com/web-infra-dev/midscene/pull/3100)
#### 文档 📖
- docs(site): unify Midscene Test branding by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3106](https://github.com/web-infra-dev/midscene/pull/3106)
- docs(workflow): organize readmes around GUI Agent and Testing Kit by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3108](https://github.com/web-infra-dev/midscene/pull/3108)
- docs(site): clarify execution records and reorder testing kit by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3112](https://github.com/web-infra-dev/midscene/pull/3112)
#### CI 与维护 ⚙️
- ci(workflow): add `notify_stable_release` dispatch option to toggle IM notifications by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3107](https://github.com/web-infra-dev/midscene/pull/3107)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.12.4...v1.12.5](https://github.com/web-infra-dev/midscene/compare/v1.12.4...v1.12.5)
## v1.12.4
### 完整变更
2026-09-07 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.12.4)
#### 新功能 🎉
- feat(core): support scoped AI contexts and stateless Test Runner workflows by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3065](https://github.com/web-infra-dev/midscene/pull/3065)
#### 问题修复 🐞
- fix(computer): handle Linux delayed input by @simplyme0823 in [https://github.com/web-infra-dev/midscene/pull/3081](https://github.com/web-infra-dev/midscene/pull/3081)
- fix(cli): honor HarmonyOS batch target overrides by @quanru in [https://github.com/web-infra-dev/midscene/pull/3082](https://github.com/web-infra-dev/midscene/pull/3082)
- fix(core): retry locate responses with missing coordinates by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3095](https://github.com/web-infra-dev/midscene/pull/3095)
- fix(test): settle running steps on cancellation by @quanru in [https://github.com/web-infra-dev/midscene/pull/3088](https://github.com/web-infra-dev/midscene/pull/3088)
- fix(core): avoid duplicate YAML assertion errors by @quanru in [https://github.com/web-infra-dev/midscene/pull/3044](https://github.com/web-infra-dev/midscene/pull/3044)
#### 性能优化 🚀
- perf(shared): cache system Chrome path resolution by @quanru in [https://github.com/web-infra-dev/midscene/pull/3052](https://github.com/web-infra-dev/midscene/pull/3052)
- perf(visualizer): memoize selected action lookup by @quanru in [https://github.com/web-infra-dev/midscene/pull/3054](https://github.com/web-infra-dev/midscene/pull/3054)
#### 文档 📖
- docs(core): update overview for test runner by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3092](https://github.com/web-infra-dev/midscene/pull/3092)
- docs(site): use official Doubao pricing by @simplyme0823 in [https://github.com/web-infra-dev/midscene/pull/3093](https://github.com/web-infra-dev/midscene/pull/3093)
#### 测试 🧪
- test(web-integration): expand input E2E coverage by @quanruzhuoxiu in [https://github.com/web-infra-dev/midscene/pull/2953](https://github.com/web-infra-dev/midscene/pull/2953)
#### CI 与维护 ⚙️
- chore(test): align node contracts with agent APIs by @yuyutaotao in [https://github.com/web-infra-dev/midscene/pull/3101](https://github.com/web-infra-dev/midscene/pull/3101)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.12.3...v1.12.4](https://github.com/web-infra-dev/midscene/compare/v1.12.3...v1.12.4)
## v1.12.3
### 完整变更
2026-09-02 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.12.3)
#### 新功能 🎉
- feat(core): add configurable text input strategies by @quanruzhuoxiu in [https://github.com/web-infra-dev/midscene/pull/3042](https://github.com/web-infra-dev/midscene/pull/3042)
#### 问题修复 🐞
- fix(android): recover static scrcpy screenshots in-band by @quanru in [https://github.com/web-infra-dev/midscene/pull/3074](https://github.com/web-infra-dev/midscene/pull/3074)
- fix(ios): make keyboard auto-dismiss best effort by @quanru in [https://github.com/web-infra-dev/midscene/pull/3075](https://github.com/web-infra-dev/midscene/pull/3075)
- fix(android): harden scrcpy freshness recovery by @quanru in [https://github.com/web-infra-dev/midscene/pull/3080](https://github.com/web-infra-dev/midscene/pull/3080)
- fix(studio): restore packaged Android device preview by @quanru in [https://github.com/web-infra-dev/midscene/pull/3077](https://github.com/web-infra-dev/midscene/pull/3077)
- fix(core): make JSON object validation explicit by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3076](https://github.com/web-infra-dev/midscene/pull/3076)
- fix(computer): use physical pixels for Windows DPI scaling by @quanru in [https://github.com/web-infra-dev/midscene/pull/3064](https://github.com/web-infra-dev/midscene/pull/3064)
- fix(core): use rstest mock API in core tests by @quanru in [https://github.com/web-infra-dev/midscene/pull/3084](https://github.com/web-infra-dev/midscene/pull/3084)
#### 重构 ♻️
- refactor(core): decouple model interaction protocols by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3070](https://github.com/web-infra-dev/midscene/pull/3070)
- refactor(core): simplify planning locate parameters by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3073](https://github.com/web-infra-dev/midscene/pull/3073)
#### 文档 📖
- docs(site): refresh homepage model strategy cards by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3035](https://github.com/web-infra-dev/midscene/pull/3035)
#### CI 与维护 ⚙️
- chore(workflow): migrate core to rstest by @fi3ework in [https://github.com/web-infra-dev/midscene/pull/3033](https://github.com/web-infra-dev/midscene/pull/3033)
#### 其他变更
- style(site): polish homepage toolkit cards and dividers by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3078](https://github.com/web-infra-dev/midscene/pull/3078)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.12.2...v1.12.3](https://github.com/web-infra-dev/midscene/compare/v1.12.2...v1.12.3)
## v1.12.2
### 完整变更
2026-08-28 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.12.2)
#### 新功能 🎉
- feat(core): apply preferred language to planning details by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3062](https://github.com/web-infra-dev/midscene/pull/3062)
#### 问题修复 🐞
- fix(android): avoid scrcpy server upload memory leak by @quanru in [https://github.com/web-infra-dev/midscene/pull/3048](https://github.com/web-infra-dev/midscene/pull/3048)
- fix(web-integration): validate CDP endpoint protocol by @quanru in [https://github.com/web-infra-dev/midscene/pull/3051](https://github.com/web-infra-dev/midscene/pull/3051)
- fix(android-playground): correct dev:server bin path by @quanru in [https://github.com/web-infra-dev/midscene/pull/3050](https://github.com/web-infra-dev/midscene/pull/3050)
- fix(shared): preserve recorder artifacts during signal shutdown by @quanru in [https://github.com/web-infra-dev/midscene/pull/3049](https://github.com/web-infra-dev/midscene/pull/3049)
#### 重构 ♻️
- refactor(core): organize DeepSeek model files by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3059](https://github.com/web-infra-dev/midscene/pull/3059)
#### 文档 📖
- docs(site): add appcontrolbench by @simplyme0823 in [https://github.com/web-infra-dev/midscene/pull/3031](https://github.com/web-infra-dev/midscene/pull/3031)
- docs(site): clarify preferred language behavior by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3061](https://github.com/web-infra-dev/midscene/pull/3061)
- docs(site): clarify AppControlBench chart grouping by @simplyme0823 in [https://github.com/web-infra-dev/midscene/pull/3063](https://github.com/web-infra-dev/midscene/pull/3063)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.12.1...v1.12.2](https://github.com/web-infra-dev/midscene/compare/v1.12.1...v1.12.2)
## v1.12.1
### 完整变更
2026-08-27 · [GitHub Release](https://github.com/web-infra-dev/midscene/releases/tag/v1.12.1)
#### 新功能 🎉
- feat(site): implement the V4 homepage design by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3025](https://github.com/web-infra-dev/midscene/pull/3025)
- feat(test): add P0 platform preset nodes by @quanru in [https://github.com/web-infra-dev/midscene/pull/3026](https://github.com/web-infra-dev/midscene/pull/3026)
#### 问题修复 🐞
- fix(android): adopt upstream ADB disconnect fix by @quanru in [https://github.com/web-infra-dev/midscene/pull/3016](https://github.com/web-infra-dev/midscene/pull/3016)
- fix(core): make task execution errors transport-safe by @quanru in [https://github.com/web-infra-dev/midscene/pull/3000](https://github.com/web-infra-dev/midscene/pull/3000)
- fix(ios): make keyboard dismissal deterministic by @quanru in [https://github.com/web-infra-dev/midscene/pull/3017](https://github.com/web-infra-dev/midscene/pull/3017)
- fix(site): restore docs header alignment and update AVATR logo by @xiong35 in [https://github.com/web-infra-dev/midscene/pull/3032](https://github.com/web-infra-dev/midscene/pull/3032)
- fix(android): constrain replanning screenshots to scrcpy max size by @quanru in [https://github.com/web-infra-dev/midscene/pull/3021](https://github.com/web-infra-dev/midscene/pull/3021)
- fix(android): configure bitrate and harden scrcpy recovery by @quanru in [https://github.com/web-infra-dev/midscene/pull/3009](https://github.com/web-infra-dev/midscene/pull/3009)
- fix(core): deduplicate multimodal reference images in reports by @quanru in [https://github.com/web-infra-dev/midscene/pull/3019](https://github.com/web-infra-dev/midscene/pull/3019)
- fix(cli): restore YAML task progress output by @quanru in [https://github.com/web-infra-dev/midscene/pull/3028](https://github.com/web-infra-dev/midscene/pull/3028)
- fix(cli): preserve serial YAML config order by @quanru in [https://github.com/web-infra-dev/midscene/pull/2972](https://github.com/web-infra-dev/midscene/pull/2972)
- fix(workflow): replace simple-git-hooks with husky by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3037](https://github.com/web-infra-dev/midscene/pull/3037)
- fix(cli): isolate shared-browser YAML tabs by @quanru in [https://github.com/web-infra-dev/midscene/pull/2967](https://github.com/web-infra-dev/midscene/pull/2967)
- fix(android): avoid unreliable select-all when clearing inputs by @quanru in [https://github.com/web-infra-dev/midscene/pull/3018](https://github.com/web-infra-dev/midscene/pull/3018)
- fix(test): load TypeScript configs on Windows by @dajiaohuang in [https://github.com/web-infra-dev/midscene/pull/3030](https://github.com/web-infra-dev/midscene/pull/3030)
- fix(core): omit DeepSeek temperature in thinking mode by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3043](https://github.com/web-infra-dev/midscene/pull/3043)
- fix(shared): remove Canvas image fallback by @quanruzhuoxiu in [https://github.com/web-infra-dev/midscene/pull/2888](https://github.com/web-infra-dev/midscene/pull/2888)
#### 文档 📖
- docs(site): update DeepSeek card description by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3036](https://github.com/web-infra-dev/midscene/pull/3036)
- docs(site): add v1.11 and v1.12 changelogs by @quanruzhuoxiu in [https://github.com/web-infra-dev/midscene/pull/3034](https://github.com/web-infra-dev/midscene/pull/3034)
- docs(site): move DeepSeek guidance into model notes by @EAGzzyCSL in [https://github.com/web-infra-dev/midscene/pull/3039](https://github.com/web-infra-dev/midscene/pull/3039)
#### 测试 🧪
- test(report): verify screenshot pixel integrity by @linhongyu510 in [https://github.com/web-infra-dev/midscene/pull/2976](https://github.com/web-infra-dev/midscene/pull/2976)
#### CI 与维护 ⚙️
- chore(workflow): migrate cli and web-integration to rstest by @fi3ework in [https://github.com/web-infra-dev/midscene/pull/3007](https://github.com/web-infra-dev/midscene/pull/3007)
#### 其他变更
- 支持bridge 模式创建不打扰用户的 tab by @RainMountainCao in [https://github.com/web-infra-dev/midscene/pull/3038](https://github.com/web-infra-dev/midscene/pull/3038)
#### 新贡献者
- @RainMountainCao made their first contribution in [https://github.com/web-infra-dev/midscene/pull/3038](https://github.com/web-infra-dev/midscene/pull/3038)
- @dajiaohuang made their first contribution in [https://github.com/web-infra-dev/midscene/pull/3030](https://github.com/web-infra-dev/midscene/pull/3030)
- @linhongyu510 made their first contribution in [https://github.com/web-infra-dev/midscene/pull/2976](https://github.com/web-infra-dev/midscene/pull/2976)
**Full Changelog**: [https://github.com/web-infra-dev/midscene/compare/v1.12.0...v1.12.1](https://github.com/web-infra-dev/midscene/compare/v1.12.0...v1.12.1)
## v1.12 - DeepSeek V4、Midscene Test 与报告耗时汇总
v1.12 支持 DeepSeek V4 视觉模型,推出Midscene Test(Beta),并为报告增加耗时汇总。
### DeepSeek V4 视觉模型支持
- 支持 `deepseek-v4-flash-vision-exp`。配置方法参见[常用模型配置](/zh/model-api-setup.md#deepseek),更多信息参见[Midscene 1.12 支持 DeepSeek V4 Flash Vision Exp](https://mp.weixin.qq.com/s/FDAPd1WrNP6Sb8SRJUen6w)。
### Midscene Test(Beta)
- 新增 `@midscene/test`,支持使用 YAML 编写自然语言测试,也可通过 TypeScript Node 扩展。Midscene Test 将逐步替代旧版 YAML 自动化方案,协议和 API 目前仍处于 Beta 阶段。详见 [Midscene Test 概览](/zh/midscene-test/overview.md)。
### 报告与稳定性
- Report 侧边栏新增总耗时和模型调用耗时,Markdown 报告也会按模型汇总耗时和 Token 用量。
- 截图处理流程会把观察帧统一保存为 JPEG,减少运行产物占用的空间。
- 修复 Electron ASAR 包中的资源路径解析问题。受影响的资源包括 yadb 和 scrcpy 外部二进制文件。
## v1.11 - 多平台稳定性改进
v1.11 提高了模型验证、移动端输入和报告生成的稳定性。
### 稳定性与文档
- 修复模型验证回调丢失 Playground SDK 方法上下文的问题。
- 修复 HarmonyOS 无法正确解析应用启动目标的问题。该问题会影响已声明的 ability 和经过映射的目标。
- Android 和 HarmonyOS 清空输入框前会先全选文本,以兼容更多输入法和控件。
- Playwright 报告文件名增加长度限制和重名规避,避免长标题触发 `ENAMETOOLONG` 错误。
- 补充 Doubao Seed Android showcase 的执行成本数据。
## v1.10 - BDD 风格脚本、Doubao-Seed-2.1 与 MCP 下线
v1.10 新增 BDD 风格的 Gherkin 脚本执行能力,升级推荐模型到 Doubao-Seed-2.1,并正式下线 MCP server 包,后续推荐通过 Skills 与各平台 CLI 让 AI Agent 驱动 Midscene。
### BDD 风格脚本(Gherkin)
- 新增 `agent.runGherkinScenario()`,可在 JavaScript / TypeScript 中直接运行 Gherkin 场景。
- YAML flow 新增 `runGherkinScenario` 步骤,可把自然语言场景写成 `Given` / `When` / `Then` 结构并按步骤执行。
- `Given` / `When` 会映射为 `aiAct`,`Then` 以及跟随它的 `And` / `But` 会映射为 `aiAssert`,让测试用例既保持自然语言可读性,又有稳定的步骤结构。
- 当前支持围绕单个 `Scenario` 的 Gherkin 子集,BDD 相关能力仍处于 Beta 阶段。详见:[BDD 风格脚本(Gherkin)](/zh/advanced/bdd-style-scripts-with-gherkin.md)
### 新增模型支持
- 推荐并支持 `Doubao-Seed-2.1-turbo`,在当前私有测评集中具备很快的定位速度和良好的定位效果。
- 豆包 Seed 系列统一使用 `MIDSCENE_MODEL_FAMILY="doubao-seed"`,同时继续兼容旧的 `doubao-vision` family。详见:[常用模型配置](/zh/model-api-setup.md#doubao-seed-model)、[模型策略](/zh/model-selection.md)
### MCP 下线
- Midscene 不再发布 MCP server 包,包括 `@midscene/web-bridge-mcp`、`@midscene/android-mcp`、`@midscene/ios-mcp`、`@midscene/harmony-mcp`、`@midscene/computer-mcp` 和 `@midscene/mcp`。
- 需要 AI 编程 Agent 操作浏览器、移动设备或桌面应用时,请改用 [Skills](/zh/skills.md) 与各平台 CLI。
- 如果仍依赖 MCP server,请将 Midscene 固定在 `1.9.8`。这是最后一个包含 MCP 支持的版本。详见:[MCP 集成已下线](/zh/mcp.md)
## v1.9 - 新增模型支持、YAML 自动化与 AndroidWorld Benchmark
v1.9 版本扩展了模型支持,改进了 YAML 自动化,并提升了报告查看、Android 自动化、Web 输入和桌面自动化的稳定性。
### AndroidWorld Benchmark
Midscene 新增 AndroidWorld benchmark 报告。使用 v1.9.5 测试时,Midscene 达到 **Pass\@1 93.10%**、**Pass\@2 95.69%**、**Pass\@3 97.41%**。详见:[AndroidWorld Benchmark 报告](/zh/android-world-benchmark-report.md)
### 新增模型支持
- 新增 Kimi 和 Xiaomi MiMo 模型支持。详见:[常用模型配置](/zh/model-api-setup.md)
### 模型与规划更新
- `aiAct` 支持图片提示。
- `MIDSCENE_MODEL_REASONING_ENABLED` 支持 `default`,适配模型默认思考行为。
- Gemini thinking content 与 GPT-5 reasoning 配置处理更完整。
- `aiAct` 在缓存失效时会回退到模型规划,并清空对应缓存。
- AI 请求错误会包含重试次数信息;模型响应解析失败时会保留原始响应;解析后的 locate 结果会先校验再使用。
- 模型 dump 会暴露更多模型响应元数据,包括 raw choice message,以及 usage 中的响应模型名。
- `deepLocate` 的搜索区域会显示在报告上。
### Chrome 扩展
- Chrome 扩展 Bridge mode 支持文件上传。
- Bridge mode 文件上传支持 file chooser accept 过滤与 WSL 文件路径。
### YAML、CLI 与 MCP
- `1.9.8` 是最后一个包含 MCP 支持的 Midscene 版本。后续版本会下线 MCP server 包,改为推荐 Skills 与各平台 CLI。
- 各平台 CLI 支持传入 agent behavior init args。
- CLI 的 YAML 脚本新增 HarmonyOS target,HarmonyOS 自动化可以通过与 Web、Android、iOS、Computer 一致的脚本运行器流程执行。详见:[YAML 脚本自动化](/zh/automate-with-scripts-in-yaml.md)、[HarmonyOS API](/zh/sdk/harmonyos.md)
- YAML Web config 支持自定义 HTTP headers。
- YAML Web config 支持通过 `downloadPath` 指定浏览器下载目录。
- YAML 执行会暴露真实错误,不再只落到静默的 "not executed" 结果。
- YAML 批量执行支持重试失败用例。
- YAML 成功执行后会打印报告路径。
- 显式指定的 YAML report 文件名会被正确保留。
- CLI / MCP / Skill 流程可以通过共享参数暴露 `deepLocate` / `deepThink` 控制项。
- Assert CLI / MCP 工具会转发自定义失败信息,让断言失败更清晰。
- CLI 会从 CLI 包自身解析 `@rstest/core`,并延迟加载 Rstest core,让外部启动路径下的 framework 执行更稳定。
### 报告
- `recordToReport` 支持自定义截图。
- Report 导出会让图片路径与导出的截图保持一致。
- Report 新增 JSON tree view,方便查看结构化任务和模型数据。
- 优化 Report 截图、标签、Playground server origin 处理与上下文间距。
### Studio 与 Recorder
- 稳定 Studio recorder 描述与预览输入合并行为。
- Studio 会更安全地处理无效的模型环境变量配置。
- Recorder 工作流支持生成 Markdown replay output。
### Android 自动化
- 改进 Android action controls 和规划提示,提升原生移动端自动化流程的稳定性。
### Computer 自动化
- Computer desktop automation 新增 Intel packaging。
- Libnut 滚动现在每个 tick 会发出完整的一次 wheel delta。
### 问题修复
- 修复 Web integration 中 `longPress` 时长被限制在 600ms 的问题。
- 修复 Web 输入框在输入过程中重新渲染时可能丢字符的问题。
- 修复部分环境下 HarmonyOS MCP 因 `photon` / `sharp` WASM 初始化失败而无法启动的问题。
- 修复 Computer RDP 首帧空白截图问题。
- 自动修复 Computer phased-scroll helper 缺失可执行权限的问题。
- 补充 elevated Windows 应用输入丢失警告。
- 补充 Computer 自动化的 IPv6 RDP host 支持。
### 文档更新
- 补充 Azure OpenAI-compatible endpoint 配置说明。
## v1.8 - Midscene Studio 桌面端与多平台增强
v1.8 版本带来全新的桌面端应用 **Midscene Studio**,新增长按/清空输入等多项 API,并对模型规划行为、设备集成、报告系统和 MCP 工具集进行了全面升级。
### 全新桌面端应用 Midscene Studio(Beta)
Midscene Studio 是一个基于 Electron 的桌面应用,把多平台 Playground 整合进一个原生界面,开箱即用。当前处于 **Beta** 阶段,可从 [latest release 页面](https://github.com/web-infra-dev/midscene/releases/latest) 选择 `midscene-studio-beta-*` 资源下载最新版 Studio,欢迎试用并反馈问题:
- **多平台 Playground**:Web、Android、iOS、HarmonyOS、Computer 在同一个 Studio 应用中无缝切换
- **设备交互预览**:Android / iOS / HarmonyOS 设备预览支持手动鼠标和触控控制;Web 预览支持实时画面流式渲染
#### 下一步:在 Studio 中录制生成可回放的 Midscene 脚本
我们正在 Studio 中打造一条「录制 → 脚本 → 回放」的闭环工作流:直接在 Studio 里对真实设备进行操作录制,自动生成结构化的 Midscene 脚本,并能即时在 Studio 内重新回放、调试、导出。该能力将在后续版本中陆续开放,敬请期待。
### YAML 工作流增强
- **Android runAdbShell timeout**:在 JavaScript API 和 YAML 脚本中都支持 `timeout` 选项。详见:[Android API](/zh/sdk/android.md)、[YAML 脚本自动化](/zh/automate-with-scripts-in-yaml.md)
### 新增交互 API
- **`agent.aiLongPress()`**:对指定元素执行长按操作,适用于触发长按菜单等场景。详见 [API 文档](/zh/reference.md#agentailongpress)
- **`agent.aiClearInput()`**:清空指定输入框的内容,适合把清空当作独立一步的场景。详见 [API 文档](/zh/reference.md#agentaiclearinput)
### 设备与平台集成
- **iOS 连接外部 WDA 会话**:iOS 支持连接已有的 WebDriverAgent 会话,方便复用外部 WDA 环境
- **iOS 设备实现可覆盖**:允许使用自定义 iOSDevice 实现,便于深度扩展或定制
- **Computer 远程桌面**:Computer MCP / CLI 连接工具支持传入 RDP 连接选项,可直接接管远程 Windows 桌面
- **`agentForComputer` 命名修正**:新增 `agentForComputer` 作为主推 API,原有 `agentFromComputer` 保留为向后兼容别名
- **Puppeteer CLI viewport 选项**:Puppeteer CLI 新增窗口尺寸配置,方便在命令行中指定运行时的浏览器视口
### 模型与规划行为
- **使用意图与配置槽位分离**:模型使用意图与实际解析到的配置槽位分离,多模型 Planning、定位和报告展示更清晰
- **默认关闭原生思考**:对于已支持的模型系列,Midscene 默认关闭模型原生思考,以提升执行速度和稳定性。详见:[模型原生的思考模式](/zh/model-config.md#model-native-reasoning)
- **豆包低延迟模式**:支持豆包低延迟模式配置方式,可通过 `MIDSCENE_MODEL_EXTRA_BODY_JSON={"service_tier":"fast"}` 开启。详见:[常用模型配置](/zh/model-api-setup.md)
- **GLM-5V-Turbo 支持**:新增智谱 GLM-5V-Turbo 模型支持。详见:[常用模型配置](/zh/model-api-setup.md)
- **滚动选择规划优化**:优化滚动选择(scrollable select)的规划流程,提升复杂下拉与滚轮选择场景的成功率
### MCP 与平台 CLI
- **新增 `assert` MCP 工具**:MCP 新增基于 `aiAssert` 的断言工具,AI 助手可以直接调用断言能力。详见:[MCP 服务](/zh/mcp.md)
- **Assert 支持图片提示**:Assert CLI / MCP 工具支持传入图片作为提示词,便于结合参考图进行断言
- **平台 CLI 接受裸初始化参数**:各平台 CLI 简化参数传递方式,直接接受平台 Agent 构造参数
- **Playwright fixture 透传 Agent 选项**:`PlaywrightAiFixture` 支持透传 `PlaywrightAgent` 构造参数,便于复用 fixture 时自定义 Agent 配置
### 报告系统
- **CLI 合并报告**:CLI 新增 `report-tool merge` 子命令,可将多份报告文件合并为一个,便于集中查看
- **报告中记录截图工具调用**:截图工具(`take_screenshot`)的调用现在会在报告中显示,便于排查截图相关问题
### Chrome 扩展
- **Chrome Web Store 发布自动化**:扩展发布到 Chrome Web Store 的流程已自动化,缩短发布周期
### 问题修复
- 修复 `aiAct` 在动作真正执行前就触发完成状态的问题
- 修复 Insight prompt 在部分场景下优先使用参考图而不是当前截图的问题
- 修复新标签页导航后的 Bridge 连接问题
- 修复 iOS / HarmonyOS / Computer Playground 点击投影问题
- 修复 HarmonyOS 单次调用 `autoDismissKeyboard` 的配置不生效问题
- 修复 Android Playground 视频流内存占用过高的问题
- 修复 Computer 滚动默认距离与 Web 不一致的问题
- 修复部分模型返回归一化 \[0,1000] 坐标超出范围的边界问题
- 修复 Bridge 模式下 `aiAct` 选项未被继承的问题
- 修复 Action API 返回值与文档不一致的问题
- 修复 `maxTokens` 与意图模型配置不匹配的问题
- 修复服务端端口探测时未使用 `0.0.0.0` 与实际监听 host 不一致的问题
- 修复 `aiAct` 中 deepThink 标记在报告中丢失的问题
- 修复 iOS 输入时偶发的字符丢失问题
- 修复 HarmonyOS system action 延迟覆盖逻辑
## v1.7 - 灵活处理报告文件、支持 Qwen 3.6 模型
### 灵活处理报告文件
从 v1.7.0 开始,你可以把报告文件中的原始截图和 JSON 数据提取出来,或者把报告转录为 Markdown,方便其他工具继续消费这些内容。
## 示例
你可以把报告文件解析为这样一份 Markdown 文件:
```
# Act - 搜索并播放 Midscene 相关的视频
- Execution start: 2026-04-08T02:13:04.795Z
- Task count: 21
## 1. Plan - 点击顶部的搜索框以激活输入
- Status: finished
- Start: 2026-04-08T02:13:04.845Z
- End: 2026-04-08T02:13:15.296Z
- Cost(ms): 10451
- Screen size: 2880 x 1536

.....
```
进一步,你可以结合 [Remotion Skill](https://www.remotion.dev/docs/ai/skills?utm_source=midscenejs) 解析这份 Markdown 文件,并生成一个个性化的回放视频。
视频生成结果如下:
Midscene 支持通过命令行工具或者 JavaScript SDK 来解析报告文件,使用方法详见:[解析报告文件](/zh/consume-report-file.md)
### 新增 Qwen 3.6 模型支持
适配了 Qwen 3.6 模型,可以在 Midscene 中使用最新的通义千问模型。详见:[模型配置](/zh/model-config.md)
### Chrome 扩展录制语言设置
Chrome 扩展的录制设置中新增了 YAML 输出语言选项,支持 English、Chinese、Japanese 等多种语言,也可设为 Auto 自动跟随系统语言。
### Android / 鸿蒙端改进
- Android 和鸿蒙端新增 `terminate` 操作,支持强制停止指定应用,方便在测试中重置应用状态。详见:[Android API](/zh/sdk/android.md)、[鸿蒙 API](/zh/sdk/harmonyos.md)
- 修复 Android 端在 X/Twitter 上输入时 placeholder 文本被意外保留的问题
- 修复 Android Playground 局域网访问问题
### 调试体验改进
- 执行日志支持保存到磁盘,便于事后排查问题
- Playground 配置页面保存模型配置时,可运行连通性测试,及时发现配置错误
- Skill CLI 的 `run` 命令支持通过 `--image` 参数传入图片作为提示
### 问题修复
- 修复文件选择器缺失文件时错误提示不清晰的问题
- 修复 CLI 批量运行时错误信息汇总不完整的问题
- 修复 YAML 脚本中 `aiScroll` 缩进格式错误的问题
- 修复 `aiLocate` 元素定位框不准确的问题
- 修复截图失败时缺少降级方案的问题
- 修复部分模型返回空响应时未正确处理的问题
- 修复 CDP 连接模式下标签页复用问题
- 修复 `aiQuery` 在特定数据结构下结果缺失的问题
- 修复 AutoGLM 启动应用时参数格式不正确的问题
- 修复 Playground 中部分下拉菜单显示异常的问题
- 修复模型配置中自定义请求头别名不生效的问题
## v1.6 - CDP 连接、双指缩放与多模型增强
v1.6 版本新增了 CDP 浏览器连接模式、跨平台双指缩放手势、GPT-5/GPT-5.4 模型支持,同时对元素定位、报告系统、Chrome 扩展等进行了多项改进。
### 新增 CDP 浏览器连接模式
支持通过 CDP (Chrome DevTools Protocol) 直接连接已有的浏览器实例进行自动化,无需由 Midscene 启动浏览器,适用于需要复用已有浏览器会话的场景。详见:[Skills - Browser Automation](/zh/skills.md)、[YAML 脚本运行器 - CDP 连接模式](/zh/yaml-script-runner.md#使用-cdp-连接模式)
### 新增跨平台双指缩放手势
在 Android、iOS、鸿蒙等移动端平台支持 pinch/zoom 双指缩放操作,可用于地图缩放、图片预览等场景。详见:[API 文档 - aiPinch](/zh/reference.md#agentaipinch)
### 新增 GPT-5 / GPT-5.4 与 Codex app-server provider 支持
适配了 GPT-5 和 GPT-5.4 模型,同时新增 Codex app-server provider,开发者可以使用最新的 OpenAI 模型进行视觉理解与自动化操作。详见:[模型配置](/zh/model-config.md)、[模型策略](/zh/model-selection.md)
### 新增模型请求 extraBody 参数
新增 `extraBody` 配置,开发者可以在模型 API 请求中传递额外的自定义参数,满足特定模型或部署环境的需求。详见高阶配置中的 [`MIDSCENE_MODEL_EXTRA_BODY_JSON` 环境变量](/zh/model-config.md#高阶配置可选)
### `deepThink` 更名为 `deepLocate`
元素定位相关 API 中的 `deepThink` 参数正式更名为 `deepLocate`,更准确地表达其"深度定位"的含义。原有 `deepThink` 参数仍可使用,但建议逐步迁移。详见:[API 文档](/zh/reference.md#common)
### Skill CLI 与平台工具增强
- **Skill CLI 自定义接口**:Skill CLI 支持自定义接口,开发者可以更灵活地扩展 Skill 能力。详见:[Skills 文档](/zh/skills.md)
- **统一 MCP 工具导出**:所有平台包(Web、Android、iOS 等)统一导出 MidsceneTools,在 MCP 场景下集成更简单。详见:[MCP 服务](/zh/mcp.md)
- **iOS 终止指定应用**:iOS 端支持通过 bundleId 终止指定应用,方便测试流程中重置应用状态。详见:[iOS API](/zh/sdk/ios.md)
- **CLI 版本查看**:CLI 新增版本查看功能,健康检查中显示各包版本信息,便于排查环境问题
### 任务取消支持
`aiAct` 新增 `AbortSignal` 支持,开发者可以在任务执行过程中随时取消操作,避免长时间等待。详见:[API 文档 - aiAct](/zh/reference.md#agentaiact)
### 元素定位优化
优化了 `deepLocate` 的定位流程,在复杂界面下的定位效率和准确率均有提升。
### 报告与回放改进
- **大型报告加载更快**:报告中的截图支持懒加载,包含大量步骤的报告打开速度显著提升
- **移动端报告更直观**:报告回放时展示设备外壳,更直观地还原移动端操作场景
- **时序信息更精确**:报告中 AI 调用和操作执行的时序信息精度更高,便于定位性能瓶颈
### 稳定性改进
- AI 规划偶发解析失败时自动重试一次,减少因网络抖动导致的测试中断
- 设备健康检查新增监控器检测,帮助排查无头环境下的显示问题
### Chrome 扩展改进
- 修复录制停止后生成脚本时的崩溃问题
- 修复长时间录制时因消息序列化性能问题导致的卡顿
- Bridge 模式新增启停控制按钮,修复确认操作时连接断开的问题
### 问题修复
- 修复 MCP 服务在某些情况下变成僵尸进程占用 100% CPU 的问题
- 修复页面跳转过程中截图失败未重试的问题
- 修复 Android 端部分场景下文字输入丢失的问题
- 修复 `aiNumber` 在某些格式下提取结果不正确的问题
- 修复 `aiScroll` 不传参数时的调用异常
- 修复使用 AutoGLM 模型时返回/主页操作在不同平台上的兼容问题
- 修复报告中模型名称包含 `/` 时显示异常的问题
- 修复报告回放结束后播放器未正确重置的问题
- 修复 Playground 中 Deep Think 开关未正确读取环境变量配置的问题
- 修复高分辨率设备截图中光标大小显示不正确的问题
- 修复 Linux 环境下 Chrome 启动路径解析失败的问题
- 修复页面包含 iframe 时元素定位不准确的问题
- 修复鸿蒙端在特定渲染分辨率下屏幕信息解析错误的问题
- 修复 Playground 中取消任务后设备方向显示不正确的问题
## v1.5 - HarmonyOS(鸿蒙)自动化支持
v1.5 版本新增了 HarmonyOS 自动化支持,新增 Qwen3.5 和 doubao-seed 2.0 模型支持,同时对桌面自动化、报告系统、Chrome 扩展等进行了多项改进。
### 新增 HarmonyOS(鸿蒙)自动化支持
新增 `@midscene/harmony` 包,正式支持 HarmonyOS 平台自动化。Midscene 的自动化能力从 Web、Android、iOS、桌面进一步扩展到鸿蒙生态。
### 新增 Qwen3.5 与 doubao-seed 2.0 模型支持
适配了通义千问 Qwen3.5 和豆包 doubao-seed 2.0 模型,开发者可以使用更新的模型获得更好的视觉理解效果。
### 新增通用模型推理配置
新增 `MIDSCENE_MODEL_REASONING_EFFORT` 环境变量,作为通用的模型推理强度配置参数,方便开发者在不同模型间统一控制推理行为。
### 桌面自动化改进
- **Xvfb 虚拟显示器支持**:在无头 Linux 环境下支持 Xvfb 虚拟显示器,适用于 CI/CD 服务器等无 GUI 环境的桌面自动化
- **连接健康检查**:桌面自动化连接时新增健康检查,提升连接可靠性
- **macOS 输入优化**:macOS 上所有文本输入改用剪贴板方式,避免输入法(IME)导致的输入异常
- **鼠标控制失败检测**:自动检测鼠标控制失败并提示管理员权限需求
- **停止执行优化**:在停止执行时通过检查 destroyed 状态及时中断截图操作,避免无效等待
### 截图与显示优化
- **自定义截图缩放**:支持自定义截图缩放比例(screenshot shrink),在保证识别准确性的前提下优化性能
- **Android 缩放比解耦**:将 scalingRatio 从 size() 方法中解耦,提升灵活性
### 报告系统改进
- **时序信息更详细**:报告中的时序信息粒度更细,帮助开发者更精确地分析性能瓶颈
- **合并报告支持目录模式**:`mergeReports` 支持目录模式的报告文件
### Chrome 扩展改进
- **新增始终拒绝选项**:Chrome 扩展新增"始终拒绝"选项,并修复确认弹窗的竞态条件
- **CLI 结束后关闭 Bridge 服务**:CLI 命令完成后自动关闭 Bridge 服务器,避免残留进程
### 问题修复
- 修复表单渲染中 input mode schema 的 `z.preprocess` 处理问题
- 修复 Android 滑动参数传递问题
- 修复 Web 端尺寸计算问题
- 修复 `BASE_URL_FIX_SCRIPT` 闭合标签未被 HTML 解析器识别的问题
- 修复 PlaywrightAgent/PuppeteerAgent 构造函数中 page 为 undefined 的保护处理
## v1.4 - Skills:让 AI 助手直接操控你的设备
v1.4 版本推出了 Midscene Skills —— 一套可安装到 Claude Code、OpenClaw 等 AI 助手中的技能包,让 AI 助手直接操控浏览器、桌面、Android 和 iOS 设备。同时本版本还包含独立桌面 MCP 服务、各平台 CLI 独立入口、AI 规划增强等多项改进。
### Midscene Skills —— AI 助手的设备操控技能包
Midscene Skills 是一套可安装到 Claude Code、OpenClaw 等 AI 助手中的技能包。安装后,AI 助手可以通过自然语言直接操控浏览器、桌面、Android 和 iOS 设备。
各平台包(`@midscene/android`、`@midscene/ios`、`@midscene/web` 等)现在各自暴露了独立的 CLI 入口,Skills 正是基于此能力构建。
**覆盖平台:**
- 浏览器(Puppeteer 无头模式)
- Chrome Bridge(用户自己的桌面 Chrome)
- 桌面(macOS、Windows、Linux)
- Android(通过 ADB)
- iOS(通过 WebDriverAgent)
详见:[Midscene Skills](https://github.com/web-infra-dev/midscene-skills)
### 独立桌面自动化 MCP 包
新增 `@midscene/computer-mcp` 包,将 PC 桌面自动化能力以独立 MCP 服务的形式提供。开发者可以直接在 Cursor、Trae 等支持 MCP 的工具中使用桌面自动化能力,无需额外集成。
详见文档:[PC 桌面自动化](/zh/platforms/desktop.md)
### Chrome 扩展支持 MCP 后台连接
Chrome 扩展新增后台 Bridge 模式的 MCP 连接支持,可以将桌面浏览器作为 MCP 工具暴露给 AI 助手,进一步打通 MCP 生态。
### AI 规划能力增强
- **`aiAct` 新增 `deepLocate` 选项**:在执行操作时启用深度定位,提升复杂界面下的元素定位准确率
- **Swipe 与 DragAndDrop 语义区分**:模型现在能更精确地区分滑动和拖放操作,减少手势规划错误
- **LLM 规划增加页面导航限制**:防止模型在规划时生成不合理的页面跳转操作,提升任务执行稳定性
- **macOS 键盘输入改用 AppleScript**:提升桌面自动化中键盘输入的稳定性和兼容性
- **鼠标移动操作**:新增 cursor move 动作支持
### YAML 脚本与文件上传增强
- **YAML `aiTap` 支持 `fileChooserAccept`**:在 YAML 脚本中可直接处理文件上传对话框
- **支持目录上传**:Web 端支持 `webkitdirectory` 类型的文件夹选择上传
### Chrome 扩展 Bridge 模式缓存
Bridge 模式下新增缓存支持,复用已有的 AI 规划结果,减少重复调用,提升调试效率。
### Android 改进
- 优化文字输入逻辑,提升输入稳定性
### iOS 改进
- **Playground 实时画面流**:iOS Playground 新增实时画面展示,调试时可实时预览设备屏幕。
## v1.3 - PC 桌面自动化支持
v1.3 版本带来了全新的 PC 桌面自动化能力,大幅优化了 Android 截图性能,并对报告系统和稳定性进行了多项改进。
### 全新 PC 桌面自动化支持
Midscene 现在支持 PC 桌面自动化,在 Windows、macOS 和 Linux 上驱动原生键盘和鼠标。无论是 Electron、Qt、WPF 还是原生桌面应用,都可以通过视觉模型方案进行自动化。
**核心能力:**
- **鼠标操作**:单击、双击、右键、移动鼠标、拖放
- **键盘输入**:文本输入、组合键(Cmd/Ctrl/Alt/Shift)
- **屏幕截图**:捕获任意显示器的截图
- **多显示器支持**:同时操作多个显示器
**使用方式:**
- 支持使用 Computer Playground 零代码试用
- 支持 JavaScript SDK 脚本编写
- 支持 YAML 格式的自动化脚本和命令行工具
- 支持 HTML 报告回放所有操作路径
详见文档:[PC 桌面自动化](/zh/platforms/desktop.md)
### Android 截图性能大幅提升
开启 Scrcpy 截图模式后,截图耗时从原来的 500–2000ms 降低到 **100–200ms**,显著提升 Android 自动化的响应速度,特别适用于远程设备调试和高帧率场景。
详见文档:[Scrcpy 截图模式](/zh/sdk/android.md#scrcpy)
### 深度思考模式增强
`aiAct` 的深度思考(deepThink)模式现在不仅用于元素定位,还能优化整体任务规划,在复杂表单、多步骤流程等场景下获得更好的执行效果。
### 报告体验优化
- **时间线折叠**:新增折叠切换按钮,方便查看长任务流程
- **时间单位改为秒**:更易读
- **步骤同步高亮**:侧边栏步骤高亮与播放器回放实时同步
- **内存占用降低**:优化报告生成机制,有效降低运行时内存占用
### 移动端改进
#### Android
- 特殊字符和 Unicode 输入更稳定
- Launch 操作时应用包名匹配更宽松(忽略大小写和空格)
- 部分设备截图异常时自动重试
#### iOS
- Bundle ID 匹配更宽松(忽略大小写和空格)
### Web 自动化改进
- 修复 Puppeteer 在非活动标签页截图时可能挂起的问题
- 修复 headed 模式下窗口尺寸不准确的问题
- `shareBrowserContext` 模式下支持保留 localStorage 和 sessionStorage
- Playwright 多项目配置下,报告中自动区分不同浏览器的测试用例
- 修复 YAML 脚本中 input 操作的 `typeOnly` 模式不生效的问题
### 其他改进
- 图片处理性能提升
- SVG 图标缓存问题修复
- Playground 模型配置错误现在会显示具体原因
## v1.2 - 智谱 AI 开源模型支持与文件上传支持
v1.2 版本中我们加入了对智谱 AI 开源模型的支持,新增了文件上传功能,修复了多个影响使用体验的问题,让自动化测试更加可靠。
### 新增智谱 AI 开源模型支持
#### 智谱 GLM-V 视觉模型
- 智谱 GLM-V 系列模型是智谱 AI 推出的开源视觉模型,有多种参数的版本,支持云端部署和本地部署。
- 详见:[GLM-V 模型配置](/zh/model-api-setup.md#glm-v)
#### 智谱 AutoGLM 移动端自动化模型
- 智谱 AutoGLM 是智谱 AI 推出的开源移动端自动化模型,能够根据自然语言指令理解手机屏幕内容,并结合智能规划能力生成操作流程完成用户需求。
- 详见:[AutoGLM 模型配置](/zh/model-api-setup.md#auto-glm)
### 文件上传功能上线
在 Web 自动化场景中,文件上传是一个常见需求。v1.2 版本为 web 端新增了文件上传能力,支持通过自然语言操作文件输入框,让表单自动化更加完整。
详见:[aiTap 文件上传](/zh/reference.md#agentaitap)
### 缓存机制优化
修复了缓存在 DOM 变更后未能及时更新的问题。当页面 DOM 发生变化导致缓存验证失败时,系统现在会自动更新缓存,避免因使用过期缓存而导致的操作失败,提升自动化脚本的稳定性。
### 报告与 Playground 改进
#### 深度思考标记优化
- 修复了 `.aiAct()` 方法使用深度思考(deepThink)时,报告中未正确显示标记的问题。现在你可以在报告中清晰地看到哪些操作使用了深度思考能力
- 优化了报告中 summary 行的样式,提升整体可读性
#### Playground 稳定性提升
- 修复了 Playground 在使用 agentFactory 模式时,未在 `getActionSpace` 中正确创建 agent 实例的问题,确保各种使用模式下的正常运行
- 优化了 Playground 输出展示,防止超长的 reportHTML 内容影响界面显示
### 模型配置更新
针对通义千问(Qwen)模型的深度思考功能,更新了相关配置参数,确保与模型最新版本的兼容性。
## v1.1 - `aiAct`深度思考与可扩展的 MCP SDK
v1.1 版本在模型规划能力与 MCP 扩展性上实现优化,让复杂场景的自动化更稳定,同时为企业级 MCP 服务部署提供更灵活的方案。
### `aiAct` 可开启深度思考能力(deepThink)
在 `aiAct` 时开启深度思考能力后,模型会更加深入地理解用户意图、优化规划结果,适用于复杂表单、多步骤流程等场景。它会带来更高的准确率,但也会增加规划耗时。
目前已支持阿里云的 Qwen3-vl 与火山引擎的 Doubao-vision 模型,具体请参考 [模型策略](/zh/model-selection.md)。
示例用法:
```typescript
await agent.aiAct('如果界面上展示“添加收货地址”按钮,那么展开已有的“收货地址”列表,并选择最后一项', { deepThink: true });
```
### MCP 扩展与 SDK 开放
开发者可以使用 Midscene 暴露的 MCP SDK 灵活部署自己的公共 MCP 服务。此能力适用于任意平台的 Agent 实例。
典型应用场景:
- 在企业内网中运行 MCP 控制私有设备池
- 将 Midscene 能力封装为内部微服务供多团队使用
- 扩展自定义自动化工具链
详见文档:[MCP 服务](/zh/mcp.md)
### Chrome 扩展优化
- 修复录制期间的潜在事件丢失问题,提升录制稳定性
- 优化 `describeElement` 的坐标传递,提高元素描述准确性
### CLI 与配置增强
- **文件参数支持**: 修复 CLI 在同时指定 `--config` 时未正确处理 `--files` 参数的问题,现在可灵活组合使用
- **动态配置**: 修复 Playground 中环境变量 `MIDSCENE_REPLANNING_CYCLE_LIMIT` 未正确读取的问题
### iOS Agent兼容性提升
- 优化 `getWindowSize` 方法,在新版本 API 不可用时自动回退到 legacy endpoint,提升对 WebDriverAgent 版本的兼容性
### 报告与 Playground 改进
- 修复报告在访问屏幕属性前未正确初始化的问题
- 修复 Playground 中 stop 函数的异常行为
- 优化视频导出时的错误处理,避免 frame cancel 导致的崩溃
感谢贡献者:@FriedRiceNoodles
## v1.0 - Midscene v1.0 正式发布!
Midscene v1.0 已发布!欢迎体验,看看它如何帮助你自动化你的工作流程。
### 查看我们全新的[案例展示](/zh/showcases.md)
在 Web 浏览器中自主注册 Github 表单,通过所有字段校验:
此外还有这些实战案例:
- [iOS 自动化 - 美团下单咖啡](/zh/showcases.md#ios)
- [iOS 自动化 - Twitter 自动点赞 @midscene_ai 首条推文](/zh/showcases.md#ios)
- [Android 自动化 - 懂车帝查看小米 SU7 参数](/zh/showcases.md#android)
- [Android 自动化 - Booking 预订圣诞酒店](/zh/showcases.md#android)
- [MCP 集成 - Midscene MCP 操作界面发布 prepatch 版本](/zh/showcases.md)
有社区开发者成功基于 Midscene 与[任意界面集成](/zh/integrate-with-any-interface.md)的特性,扩展了机械臂 + 视觉模型 + 语音模型等模块,运用于车机大屏测试场景中,请看下方视频。
### 🚀 纯视觉路线
从 V1.0 开始,Midscene 全面转向视觉理解方案,提供更稳定可靠的 UI 自动化能力。
视觉模型有以下特点:
- **效果稳定**:业界领先的视觉模型(如 Doubao Seed 1.6、Qwen3-VL 等)表现足够稳定,已经可以满足大多数业务需求
- **UI 操作规划**:视觉模型通常具备较强的 UI 操作规划能力,能够完成不少复杂的任务流程
- **适用于任意系统**:自动化框架不再依赖 UI 渲染的技术栈。无论是 Android、iOS、桌面应用,还是浏览器中的 `