pub struct NavigationWatcher { /* private fields */ }Expand description
Tracks the progress of an issued Page.navigate request until completion.
Implementations§
Sourcepub fn until_lifecycle(
id: NavigationId,
frame: FrameId,
loader_id: Option<LoaderId>,
events: &[LifecycleEvent],
) -> Self
pub fn until_lifecycle( id: NavigationId, frame: FrameId, loader_id: Option<LoaderId>, events: &[LifecycleEvent], ) -> Self
Generic ctor: wait until all given lifecycle events have fired (including all child frames).
Sourcepub fn until_load(
id: NavigationId,
frame: FrameId,
loader_id: Option<LoaderId>,
) -> Self
pub fn until_load( id: NavigationId, frame: FrameId, loader_id: Option<LoaderId>, ) -> Self
Wait for “load”
Sourcepub fn until_domcontent_loaded(
id: NavigationId,
frame: FrameId,
loader_id: Option<LoaderId>,
) -> Self
pub fn until_domcontent_loaded( id: NavigationId, frame: FrameId, loader_id: Option<LoaderId>, ) -> Self
Wait for DOMContentLoaded
Sourcepub fn until_network_idle(
id: NavigationId,
frame: FrameId,
loader_id: Option<LoaderId>,
) -> Self
pub fn until_network_idle( id: NavigationId, frame: FrameId, loader_id: Option<LoaderId>, ) -> Self
Wait for networkIdle
Sourcepub fn until_network_almost_idle(
id: NavigationId,
frame: FrameId,
loader_id: Option<LoaderId>,
) -> Self
pub fn until_network_almost_idle( id: NavigationId, frame: FrameId, loader_id: Option<LoaderId>, ) -> Self
Wait for networkAlmostIdle
Sourcepub fn until_domcontent_and_network_idle(
id: NavigationId,
frame: FrameId,
loader_id: Option<LoaderId>,
) -> Self
pub fn until_domcontent_and_network_idle( id: NavigationId, frame: FrameId, loader_id: Option<LoaderId>, ) -> Self
(optional) Wait for multiple states, e.g. DOMContentLoaded + networkIdle
Sourcepub fn is_lifecycle_complete(&self) -> bool
pub fn is_lifecycle_complete(&self) -> bool
Checks whether the navigation was completed
Trait Implementations§
Auto Trait Implementations§
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