Skip to main content

Module bidi

Module bidi 

Source
Expand description

Minimal WebDriver BiDi WebSocket client.

The socket / reader-task / writer-task / pending-correlation / timeout machinery lives in the shared crate::transport (WsRpc); this module supplies only the BiDi-specific framing/typing via the BidiProtocol adapter and the convenience methods.

Modules§

protocol
WebDriver BiDi wire protocol types.

Structs§

BidiClient
BidiEvent
BidiProtocol
BiDi framing/typing adapter for the shared transport.

Functions§

remote_value_to_json
Flatten a BiDi script.RemoteValue into plain JSON so callers see the same shape CDP’s returnByValue produces: objects become JSON objects (BiDi ships them as [[key, value], …] pairs), arrays become arrays, primitives pass through, and non-serialisable values (nodes, functions, windows) become null.