[Bug]: ui-automation tap on an alert button's elementRef reports success but doesn't dismiss the alert
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 65/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- ios, typescript
- 领域
- mobile
调研方向
Start at the ui-automation tap handler and compare how it resolves a runtime-snapshot elementRef with the ui-automation touch path. Reproduce on an iOS 27 simulator using a SwiftUI alert with one button, then check that tap dismisses the alert and reports success.
由索引模型根据 Issue 内容生成。
描述
Bug Description
ui-automation tap on a runtime-snapshot elementRef for a button in an in-app alert (a SwiftUI .alert with a single "OK" or "Dismiss" button) reports success, but the alert stays on screen. The screen hash doesn't change after three attempts. ui-automation touch with the same elementRef and "down": true, "up": true dismisses the alert on the first try.
Debug Output
MobileBuildMCP doctor (redacted)
Server Version: 2.7.1
- xcode: ok (Xcode 27.2, Build version 27B52)
- axe: ok (Available: Yes; UI automation: Yes; Video capture: Yes)
- debugger-dap: ok (Selected backend: lldb-cli; lldb-dap available: Yes)
- runtime-registration: ok (Enabled workflows: debugging, doctor, project-discovery, session-management, simulator-management, simulator, ui-automation, utilities, xcode-ide)
- mise: warning (Running under mise: No; Available: No)
Editor/Client
Claude Code
MCP Server Version
2.7.1
LLM
Claude Opus 5.5
MCP Configuration
Default configuration. Tools invoked through the `mobilebuildmcp` CLI (`ui-automation snapshot-ui`, `ui-automation tap`, `ui-automation touch`) against a booted iOS 27 simulator.
Steps to Reproduce
- Launch an app on an iOS 27 simulator so that it presents an alert with a single "OK" (or "Dismiss") button.
- Run
ui-automation snapshot-uiand take the button'selementRef. - Run
ui-automation tapwith thatelementRef. - Run
ui-automation snapshot-uiagain.
Expected Behavior
A tap that reports success performs the tap: the alert's button is activated and the alert is dismissed.
Actual Behavior
tap reports SUCCEEDED, but the alert remains and the snapshot is unchanged, across 3 attempts. As a workaround, ui-automation touch --json '{"elementRef":"<ref>","down":true,"up":true}' dismisses the alert.
Error Messages
None: the tap command reports success.
- 主要语言
- TypeScript
- 星标
- 6.6k
- 派生
- 329
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getsentry/MobileBuildMCP 的其他 Issue
-
bug
难度 1/5 1 小时以内 新手友好度 88/100
getsentry/MobileBuildMCP#576 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
getsentry/MobileBuildMCP#495 ·
-
难度 3/5 半天 新手友好度 42/100
getsentry/MobileBuildMCP#577 ·
-
难度 4/5 3-5 天 新手友好度 48/100
getsentry/MobileBuildMCP#575 ·
-
难度 4/5 3-5 天 新手友好度 48/100
getsentry/MobileBuildMCP#571 ·
查看 getsentry/MobileBuildMCP 的全部 Issue
相似的 Issue
-
Release utils decode git output chunk by chunk, so a multi-byte character can turn into U+FFFD可能已有人在做 @goranai 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 2 天内回复
-
Task retarget keeps the old host in task scope and adds the new host in a form that matches nothing可能已有人在做 @chaitanya0305 今天认领。 未关闭bug P2
难度 2/5 1-3 小时 新手友好度 62/100
BaaRai/ARTEX#652 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
compiler-explorer/compiler-explorer#9710 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug effort:S P3
难度 2/5 1-3 小时 新手友好度 72/100
nightscout/nocturne#4556 ·
维护者通常 1 天内回复