selenium.webdriver.common._bidi.transport#
The command seam between the generated BiDi protocol layer and the websocket.
Hand-written (not generated). Transport serializes a command’s params,
sends them over the session websocket, parses the reply into its declared result
type, and exposes the underlying connection for event subscription.
This is internal, unsupported implementation. See https://www.selenium.dev/documentation/warnings/bidi-implementation/
Classes
|
Serializes params, sends over a websocket connection, parses the reply. |
- class Transport(connection)[source]#
Bases:
objectSerializes params, sends over a websocket connection, parses the reply.
Deliberately narrow: it holds only an immutable connection reference (the id counter and callbacks live on the shared
WebSocketConnection). Each domain wraps the session’s connection in its ownTransport; all the state that matters lives on the shared connection, so those transports are equivalent.- Parameters:
connection (Any)
- property connection: Any#
The underlying websocket, for event subscription (which lives on it, not here).