playwright_core/
lib.rs

1// playwright-core: Internal implementation of Playwright protocol for Rust
2//
3// This crate is not part of the public API and should only be used by the
4// `playwright` crate.
5
6pub mod api;
7pub mod assertions;
8pub mod channel;
9pub mod channel_owner;
10pub mod connection;
11pub mod driver;
12pub mod error;
13pub mod object_factory;
14pub mod protocol;
15pub mod server;
16pub mod transport;
17
18/// Default timeout in milliseconds for Playwright operations.
19///
20/// This matches Playwright's standard default across all language implementations (Python, Java, .NET, JS).
21/// Required in Playwright 1.56.1+ when timeout parameter is not explicitly provided.
22///
23/// See: <https://playwright.dev/docs/test-timeouts>
24pub const DEFAULT_TIMEOUT_MS: f64 = 30000.0;
25
26pub use api::{IgnoreDefaultArgs, LaunchOptions, ProxySettings};
27pub use assertions::expect;
28pub use channel::Channel;
29pub use channel_owner::{ChannelOwner, ChannelOwnerImpl, DisposeReason, ParentOrConnection};
30pub use connection::{Connection, ConnectionLike};
31pub use error::{Error, Result};
32pub use protocol::{BrowserType, Playwright};
33pub use server::PlaywrightServer;
34pub use transport::{PipeTransport, PipeTransportReceiver, Transport};