Skip to main content

Module playwright

Module playwright 

Source
Expand description

Native Playwright client over the official driver.

protocol is generated by scripts/generate-playwright-protocol.mjs from Playwright’s protocol.yml (vendored in rust/protocol/playwright): one typed struct per protocol interface, with a typed method per command and a typed enum of its events. connection runs the conversation and driver starts playwright-core’s run-driver through command-stream.

Re-exports§

pub use connection::Channel;
pub use connection::ChannelType;
pub use connection::Connection;
pub use connection::ObjectRef;
pub use connection::ProtocolError;
pub use connection::Ref;
pub use driver::DriverLocation;
pub use driver::DriverOptions;
pub use driver::PlaywrightDriver;
pub use driver::DRIVER_ENV;

Modules§

connection
Runtime for the generated Playwright protocol bindings.
driver
Locating and starting the official Playwright driver.
protocol
Typed Playwright protocol bindings generated from the vendored spec.
transport
Framing for the Playwright driver pipe.