[Bug]: ui-automation tap on an alert button's elementRef reports success but doesn't dismiss the alert
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 65/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- ios, typescript
- Lĩnh vực
- mobile
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 6.6k
- Fork
- 329
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/MobileBuildMCP
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
getsentry/MobileBuildMCP#576 ·
-
Warden weekly sweepĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
getsentry/MobileBuildMCP#495 ·
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 42/100
getsentry/MobileBuildMCP#577 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
getsentry/MobileBuildMCP#575 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
getsentry/MobileBuildMCP#571 ·
Tất cả issue của getsentry/MobileBuildMCP
Issue tương tự
-
sumHorizontal, maxHorizontal, minHorizontal, allHorizontal, anyHorizontal, struct and argSortBy treat strings as literals instead of column namesCó thể đã có người làm @tomaionescu đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pola-rs/nodejs-polars#486 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
jaegertracing/jaeger-ui#4853 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/plugins platform/linux reproduced type/bug version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
anomalyco/opencode#66970 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:tui enhancement platform:macos
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anthropics/claude-code#112838 ·
-
Add: Sports First TV (US)Đang mởapproved check:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày