Three call sites reach SessionCapturer.captureTrace and only one asks whether the session is native. The other two run a page-side browser.execute against a native app, which cannot answer.
Measured on a real Pixel 7: 5 failures per run, each a round trip to the device plus an ERROR @wdio/devtools-service:SessionCapturer: Failed to capture trace: WebDriverError: Method is not implemented line in the user's output.
Part of the slowdown @leo reported, and pure noise in the log.
Fix: guard inside captureTrace itself rather than at each call site — the guard belongs where the assumption lives.
Three call sites reach
SessionCapturer.captureTraceand only one asks whether the session is native. The other two run a page-sidebrowser.executeagainst a native app, which cannot answer.Measured on a real Pixel 7: 5 failures per run, each a round trip to the device plus an
ERROR @wdio/devtools-service:SessionCapturer: Failed to capture trace: WebDriverError: Method is not implementedline in the user's output.Part of the slowdown @leo reported, and pure noise in the log.
Fix: guard inside
captureTraceitself rather than at each call site — the guard belongs where the assumption lives.