pub struct AddLocatorHandlerOptions {
pub no_wait_after: Option<bool>,
pub times: Option<u32>,
}Expand description
Options for page.add_locator_handler().
See: https://playwright.dev/docs/api/class-page#page-add-locator-handler
Fields§
§no_wait_after: Option<bool>Whether to keep the page frozen after the handler has been called.
When false (default), Playwright resumes normal page operation after
the handler completes. When true, the page stays paused.
times: Option<u32>Maximum number of times to invoke this handler.
Once exhausted, the handler is automatically unregistered.
None (default) means the handler runs indefinitely.
Trait Implementations§
Source§impl Clone for AddLocatorHandlerOptions
impl Clone for AddLocatorHandlerOptions
Source§fn clone(&self) -> AddLocatorHandlerOptions
fn clone(&self) -> AddLocatorHandlerOptions
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 AddLocatorHandlerOptions
impl Debug for AddLocatorHandlerOptions
Source§impl Default for AddLocatorHandlerOptions
impl Default for AddLocatorHandlerOptions
Source§fn default() -> AddLocatorHandlerOptions
fn default() -> AddLocatorHandlerOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AddLocatorHandlerOptions
impl RefUnwindSafe for AddLocatorHandlerOptions
impl Send for AddLocatorHandlerOptions
impl Sync for AddLocatorHandlerOptions
impl Unpin for AddLocatorHandlerOptions
impl UnsafeUnpin for AddLocatorHandlerOptions
impl UnwindSafe for AddLocatorHandlerOptions
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