Python: capture the native element tree per action in trace mode
維護者通常 1 天內回覆
@vishnuv688 已經在處理了。
開始於 2026年11月10日。
評估
這個 Issue 還沒有評估資料。
描述
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.
- 主要語言
- TypeScript
- 星號
- 10
- 分支
- 4
- 平均合併
- 1 天 11 小時
- 30 天內合併 PR
- 76
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
webdriverio/devtools 的其他 Issue
-
Trace: fetch/XHR response bodies hidden in the player on Safari (content.mimeType is empty)可能已有人在做 @SergeyPirogov 於 3 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
webdriverio/devtools#586 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 57/100
webdriverio/devtools#585 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 44/100
webdriverio/devtools#584 ·
維護者通常 1 天內回覆
-
Trace query MCP server: let coding agents debug a failed run from its trace.zip可能已有人在做 @vishnuv688 於 27 天前認領。 未關閉enhancement
webdriverio/devtools#493 · 已指派 1 人 ·
維護者通常 1 天內回覆
查看 webdriverio/devtools 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
garrytan/gbrain#10437 · 1 則留言 ·
維護者通常 1 天內回覆
-
Bedrock "Too many tokens" throttle is not auto-retried, unlike "Too many requests"可能已有人在做 @acmerfight 今天認領。 未關閉untriaged
難度 2/5 1-3 小時 新手友好度 78/100
earendil-works/pi#12573 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
agentes-chat/agentes-chat#1506 ·
維護者通常 1 天內回覆
-
comp/desktop desktop/files os/windows P2 type/perf
難度 2/5 1-3 小時 新手友好度 80/100
NousResearch/hermes-agent#160359 ·
維護者通常 1 天內回覆
-
Missing repro Platform: Android
難度 2/5 1-3 小時 新手友好度 76/100
software-mansion/react-native-reanimated#11554 · 1 則留言 ·
維護者通常 1 天內回覆