pub struct ConnectOverCdpOptions {
pub headers: Option<HashMap<String, String>>,
pub slow_mo: Option<f64>,
pub timeout: Option<f64>,
}Expand description
Options for BrowserType::connect_over_cdp.
Only supported for Chromium. Allows connecting to a Chrome DevTools Protocol endpoint,
such as those provided by browserless, Chrome with --remote-debugging-port, or other
CDP-compatible services.
See: https://playwright.dev/docs/api/class-browsertype#browser-type-connect-over-cdp
Fields§
§headers: Option<HashMap<String, String>>Additional HTTP headers to be sent with the connection request.
slow_mo: Option<f64>Slows down Playwright operations by the specified amount of milliseconds.
timeout: Option<f64>Maximum time in milliseconds to wait for the connection to be established. Defaults to 30000 (30 seconds). Pass 0 to disable timeout.
Implementations§
Trait Implementations§
Source§impl Clone for ConnectOverCdpOptions
impl Clone for ConnectOverCdpOptions
Source§fn clone(&self) -> ConnectOverCdpOptions
fn clone(&self) -> ConnectOverCdpOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectOverCdpOptions
impl Debug for ConnectOverCdpOptions
Source§impl Default for ConnectOverCdpOptions
impl Default for ConnectOverCdpOptions
Source§fn default() -> ConnectOverCdpOptions
fn default() -> ConnectOverCdpOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConnectOverCdpOptions
impl RefUnwindSafe for ConnectOverCdpOptions
impl Send for ConnectOverCdpOptions
impl Sync for ConnectOverCdpOptions
impl Unpin for ConnectOverCdpOptions
impl UnsafeUnpin for ConnectOverCdpOptions
impl UnwindSafe for ConnectOverCdpOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more