Skip to content

AppiumTransport.readConsoleCaptureSince method

AppiumTransport › readConsoleCaptureSince

Dumps adb logcat and returns the WebView console/error output logged since the marker from AppiumTransport.beginConsoleCapture.

Filters to the Chromium/WebView tags that carry JS console.* output and uncaught errors, and caps the result length. Bounded, post-hoc, failure-path-only — never a live monitor.

Signature:

readConsoleCaptureSince(handle: ConsoleCaptureHandle | undefined): Promise<string | undefined>

Parameters:

ParameterTypeDescription
handleConsoleCaptureHandle | undefinedThe capture handle (or undefined when capture never started).

Returns: Promise<string | undefined>The captured console/error text, or undefined if nothing relevant was logged.