pub struct DialogHandler { /* private fields */ }Expand description
Dialog handler for managing browser dialogs
Implementations§
Source§impl DialogHandler
impl DialogHandler
Sourcepub fn set_auto_behavior(&self, behavior: AutoDialogBehavior)
pub fn set_auto_behavior(&self, behavior: AutoDialogBehavior)
Set automatic behavior
Sourcepub fn dialog_count(&self) -> usize
pub fn dialog_count(&self) -> usize
Get count of dialogs
Sourcepub fn has_pending(&self) -> bool
pub fn has_pending(&self) -> bool
Check if any dialogs are pending
Sourcepub fn last_dialog(&self) -> Option<Dialog>
pub fn last_dialog(&self) -> Option<Dialog>
Get last dialog
Sourcepub fn expect_dialog(&self, dialog_type: DialogType) -> DialogExpectation
pub fn expect_dialog(&self, dialog_type: DialogType) -> DialogExpectation
Wait for a dialog (mock implementation for sync tests)
Trait Implementations§
Source§impl Clone for DialogHandler
impl Clone for DialogHandler
Source§fn clone(&self) -> DialogHandler
fn clone(&self) -> DialogHandler
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 DialogHandler
impl Debug for DialogHandler
Auto Trait Implementations§
impl Freeze for DialogHandler
impl RefUnwindSafe for DialogHandler
impl Send for DialogHandler
impl Sync for DialogHandler
impl Unpin for DialogHandler
impl UnsafeUnpin for DialogHandler
impl UnwindSafe for DialogHandler
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