Native mobile trace mode costs 40-60s per run in per-action probes
@Winify ci sta già lavorando.
Dal 13/9/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Reported: trace mode "dramatically increases test running time, especially for CI" — 40-60s on iOS — and filmstrip: false does not help.
It cannot help: the cost is not the screencast. In trace mode every mapped action runs getPageSource() and takeScreenshot() (packages/core/src/action-snapshot.ts). They sit in one Promise.all, but a driver serialises per session, so that is two sequential round trips per action. On iOS the WDA page-source XML dump is the expensive half — often a second on its own. ~30 actions x ~1.5s lands on the number he measured.
The per-command screenshot is already skipped on native; this is what remains.
Options worth weighing:
- an option to skip the page-source probe on native (screenshot-only rows)
- full snapshot only for failing actions
- both, with the default chosen for CI rather than for debugging
Prerequisite: something to measure against
There is no example exercising the native mobile capture path, which is why the mobile bugs in this batch were only found by hand-building a harness — and why this issue cannot be closed honestly without one. Any option added here needs a real-device run before and after.
A working harness exists from that investigation: WDIO configs for Android (UiAutomator2) and iOS (XCUITest) driving BrowserStack's own public sample apps, in trace mode with no dashboard, verified end to end on a real Pixel 7 and a real iPhone 17. Landing it needs three decisions:
- where the app under test comes from (the sample apps have to be uploaded, so the app id cannot be hardcoded in a committed config)
- that credentials stay in the environment
- whether it runs in CI at all, or is documented as a manual harness like the other examples
- Lingua principale
- TypeScript
- Stelle
- 10
- Fork
- 2
- Merge medio
- 1g 11h
- PR unite (30g)
- 21
Guida per i contributori
Apri 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
-
webdriverio/devtools#385 · 1 commento · 1 assegnatario ·
-
capture-architecture enhancement
webdriverio/devtools#300 · 1 assegnatario ·
-
capture-architecture enhancement
webdriverio/devtools#299 · 1 assegnatario ·
-
capture-architecture
webdriverio/devtools#298 · 3 commenti · 1 assegnatario ·
-
selenium-devtools-py
webdriverio/devtools#294 · 1 commento · 1 assegnatario ·
Tutte le issue di webdriverio/devtools
Issue simili
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Mend: dependency security vulnerability untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100