Skip to content

olef web

olef v3.18.0View Markdown

Generated from Olef 3.18.0. All olef commands · ocloud commands · Capabilities

These entries describe available commands, not a sequence to run. Check prerequisites before changing app, device, or cloud state. Global options are listed in the command catalog.

Inspect and drive debuggable Android WebViews via pure-Rust Chrome DevTools Protocol

Terminal window
olef web --help

Output: json.

Discover debuggable WebView DevTools targets for --app (browser sockets excluded by default)

Terminal window
olef web targets --help

Output: json.

Argument Description
--app <APP> App package or configured app alias
--include-browsers Explicitly allow inspecting browser DevTools sockets (@chrome_devtools_remote, Custom Tabs)
--json Accepted for compatibility; output is always JSON.

Dump interactive DOM & accessibility elements inside a WebView (piercing shadow DOM & same-origin iframes)

Terminal window
olef web dump --help

Output: json.

Argument Description
--app <APP> App package or configured app alias
--page <PAGE> Target page id from olef web targets (defaults to the first visible page)
--full Include non-interactive elements and full attributes
--include-browsers Explicitly allow inspecting browser sockets
--json Accepted for compatibility; output is always JSON.

Find elements in a WebView matching a selector without acting on them

Terminal window
olef web find --help

Output: json.

Argument Description
--app <APP> App package or configured app alias
--page <PAGE> Target page id from olef web targets
--css <CSS> CSS selector (pierces open shadow roots and same-origin iframes)
--text <TEXT> Visible text match (substring by default; add --exact for exact match)
--role <ROLE> ARIA role or tag role (e.g. button, textbox, link)
--testid <TESTID> Match [data-testid="..."]
--xpath <XPATH> XPath selector evaluated across document, shadow roots, and same-origin iframes
--exact Require exact text match instead of substring match
--include-browsers
--json Accepted for compatibility; output is always JSON.

Click/tap a unique WebView element (with shadow DOM, iframe, and optional native-overlay occlusion checks)

Terminal window
olef web tap --help

Output: json.

Argument Description
--app <APP> App package or configured app alias
--page <PAGE> Target page id from olef web targets
--css <CSS> CSS selector (pierces open shadow roots and same-origin iframes)
--text <TEXT> Visible text match (substring by default; add --exact for exact match)
--role <ROLE> ARIA role or tag role (e.g. button, textbox, link)
--testid <TESTID> Match [data-testid="..."]
--xpath <XPATH> XPath selector evaluated across document, shadow roots, and same-origin iframes
--exact Require exact text match instead of substring match
--wait-ms <WAIT_MS> Wait up to this many milliseconds for the element to appear before clicking Default: 3000.
--allow-occluded Allow clicking even when an occlusion/overlay is detected
--include-browsers
--json Accepted for compatibility; output is always JSON.

Type text into a WebView input/textarea/contenteditable element and verify readback

Terminal window
olef web text --help

Output: json.

Argument Description
<value> Text to enter (use --value-env for secrets)
--value-env <ENV> Read value from an environment variable without echoing it in output Conflicts with: value.
--app <APP> App package or configured app alias
--page <PAGE> Target page id from olef web targets
--css <CSS> CSS selector (pierces open shadow roots and same-origin iframes)
--text <TEXT> Visible text match (substring by default; add --exact for exact match)
--role <ROLE> ARIA role or tag role (e.g. button, textbox, link)
--testid <TESTID> Match [data-testid="..."]
--xpath <XPATH> XPath selector evaluated across document, shadow roots, and same-origin iframes
--exact Require exact text match instead of substring match
--clear Clear existing value before typing
--submit Dispatch Enter / form submit after typing
--include-browsers
--json Accepted for compatibility; output is always JSON.

Wait until a WebView selector appears (or disappears with --gone)

Terminal window
olef web wait --help

Output: json.

Argument Description
--app <APP> App package or configured app alias
--page <PAGE> Target page id from olef web targets
--css <CSS> CSS selector (pierces open shadow roots and same-origin iframes)
--text <TEXT> Visible text match (substring by default; add --exact for exact match)
--role <ROLE> ARIA role or tag role (e.g. button, textbox, link)
--testid <TESTID> Match [data-testid="..."]
--xpath <XPATH> XPath selector evaluated across document, shadow roots, and same-origin iframes
--exact Require exact text match instead of substring match
--gone Wait for the element to disappear instead of appear
--timeout-ms <TIMEOUT_MS> Timeout in milliseconds Default: 10000.
--include-browsers
--json Accepted for compatibility; output is always JSON.

Evaluate a JavaScript expression inside the WebView page context

Terminal window
olef web eval --help

Output: json.

Argument Description
<expression> Required. JavaScript expression to evaluate
--app <APP> App package or configured app alias
--page <PAGE> Target page id from olef web targets
--await Await returned Promises
--timeout-ms <TIMEOUT_MS> Timeout in milliseconds Default: 10000.
--include-browsers
--json Accepted for compatibility; output is always JSON.

Read active DevTools console logs and uncaught JS exceptions from the WebView page

Terminal window
olef web console --help

Output: json.

Argument Description
--app <APP> App package or configured app alias
--page <PAGE> Target page id from olef web targets
--level <LEVEL> Minimum severity level to include Default: all. Values: error, warning, all.
--last <LAST> Maximum entries to return Default: 50.
--listen-ms <LISTEN_MS> Milliseconds to listen for buffered/live console events after enabling CDP Log/Runtime Default: 400.
--include-browsers
--json Accepted for compatibility; output is always JSON.

Inspect cookies visible to the WebView page (values masked unless --values and not --redact)

Terminal window
olef web cookies --help

Output: json.

Argument Description
--app <APP> App package or configured app alias
--page <PAGE> Target page id from olef web targets
--domain <DOMAIN> Filter cookies by domain substring
--values Include raw cookie values (always masked when global --redact is active)
--include-browsers
--json Accepted for compatibility; output is always JSON.