Python: capture the native element tree per action in trace mode
Maintainer thường phản hồi trong vòng 1 ngày
@vishnuv688 đang làm issue này rồi.
Từ ngày 10/11/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
What
On a native Appium session, the Python adapter's trace actions carry a screenshot and nothing else: no element list, no locators, an empty A11y tab. The WebdriverIO service, Selenium (Node.js) and Nightwatch read the app's page source on every native action capture in trace mode (webdriverio/devtools#569 for the latter two), so their native traces carry the element tree. Python is the one ✕ in the capability matrix's "Native app element list and accessibility tree per action (trace mode)" row.
Why it happens
instrumentation.py takes no per-action snapshot on a native app: the action-snapshot path is gated off for native sessions, so only the row screenshot is recorded and no page source is read.
What a fix needs
- Read
GET /session/:id/sourceon each capturing command of a native session in trace mode, through the guarded executor so it renders no row and lands in no wait poll. - Build the snapshot text and element locators from it. Core's
fromPageSource(serializeMobileSnapshotplusgenerateAllElementLocators) does this in TypeScript; Python cannot import core, so either mirror it (withmirror-vectors.jsoncases) or have the backend build it, as it already does for other trace content Python cannot produce. - Take the platform from the session capabilities (
platformName, flat or underappium:options), as core'snativeAppOfdoes. - Skip a webview's HTML page source, as #569 does.
- Time it as the
pageSourceprobe underDEVTOOLS_CAPTURE_TIMING=1; it is the costly part of a native capture, most of it on iOS (#516). - Flip the Python cell in
packages/conformance/src/features.ts, regenerate the README and docs-site tables.
Follow-up from #516 / #563.
- Ngôn ngữ chính
- TypeScript
- Star
- 10
- Fork
- 4
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 76
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 webdriverio/devtools
-
Trace: fetch/XHR response bodies hidden in the player on Safari (content.mimeType is empty)Có thể đã có người làm @SergeyPirogov đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
webdriverio/devtools#586 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 57/100
webdriverio/devtools#585 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 44/100
webdriverio/devtools#584 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Trace query MCP server: let coding agents debug a failed run from its trace.zipCó thể đã có người làm @vishnuv688 đã nhận 27 ngày trước. Đang mởenhancement
webdriverio/devtools#493 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của webdriverio/devtools
Issue tương tự
-
Postgres upgrade golden leaves fixture URL query parameters in the expected output comparisonĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
garrytan/gbrain#10437 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bedrock "Too many tokens" throttle is not auto-retried, unlike "Too many requests"Có thể đã có người làm @acmerfight đã nhận hôm nay. Đang mởuntriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
earendil-works/pi#12573 ·
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 70/100
agentes-chat/agentes-chat#1506 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
comp/desktop desktop/files os/windows P2 type/perf
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
NousResearch/hermes-agent#160359 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Missing repro Platform: Android
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
software-mansion/react-native-reanimated#11554 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày