Python: capture the native element tree per action in trace mode
I maintainer di solito rispondono entro 1 giorno
@vishnuv688 ci sta già lavorando.
Dal 10/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 10
- Fork
- 4
- Merge medio
- 1g 11h
- PR unite (30g)
- 76
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di webdriverio/devtools
-
Trace: fetch/XHR response bodies hidden in the player on Safari (content.mimeType is empty)Forse già presa @SergeyPirogov l’ha presa 3 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
webdriverio/devtools#586 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 57/100
webdriverio/devtools#585 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 44/100
webdriverio/devtools#584 ·
I maintainer di solito rispondono entro 1 giorno
-
Trace query MCP server: let coding agents debug a failed run from its trace.zipForse già presa @vishnuv688 l’ha presa 27 giorni fa. Apertaenhancement
webdriverio/devtools#493 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di webdriverio/devtools
Issue simili
-
Postgres upgrade golden leaves fixture URL query parameters in the expected output comparisonAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
garrytan/gbrain#10437 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Bedrock "Too many tokens" throttle is not auto-retried, unlike "Too many requests"Forse già presa @acmerfight l’ha presa oggi. Apertauntriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
earendil-works/pi#12573 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
agentes-chat/agentes-chat#1506 ·
I maintainer di solito rispondono entro 1 giorno
-
comp/desktop desktop/files os/windows P2 type/perf
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
NousResearch/hermes-agent#160359 ·
I maintainer di solito rispondono entro 1 giorno
-
Missing repro Platform: Android
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
software-mansion/react-native-reanimated#11554 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno