1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Transport abstraction for CDP commands.
//!
//! Two implementations:
//!
//! - [`http`] sends commands through the WebDriver vendor endpoint
//! `POST /session/{id}/goog/cdp/execute`. Synchronous request/response;
//! cannot deliver events. This is the default used by [`crate::cdp::Cdp`].
//! - [`ws`] (feature `cdp-events`) opens a CDP WebSocket directly to the
//! underlying browser and uses flat session mode for multiplexing. This
//! is what powers [`crate::cdp::CdpSession`] and event subscription.
//!
//! The trait-based abstraction is also the entry point for a future
//! WebDriver BiDi layer: BiDi has the same request/response shape over a
//! WebSocket, just with a different envelope.
pub
pub
use crateWebDriverResult;
use Value;
/// A transport capable of issuing CDP commands.
///
/// Sealed: implementations live entirely inside the crate. End users go
/// through [`crate::cdp::Cdp`] or [`crate::cdp::CdpSession`].
// sealed; never used as &dyn Transport.
pub