pub enum Wait {
Load,
Idle,
Selector(String),
SelectorVisible(String),
Ms(u64),
}Expand description
When to consider a page ready.
Variants§
Load
CDP Page.loadEventFired. Default.
Idle
CDP Network.idle (no requests for ~500 ms).
Selector(String)
A CSS selector matches document.querySelector(...). Existence-only,
not visibility — a node hidden by CSS or with zero dimensions still
satisfies the wait. Use Wait::SelectorVisible if you need the
node to actually paint.
SelectorVisible(String)
A CSS selector matches document.querySelector(...) AND the matched
node has a non-zero bounding box, display != "none" on every
ancestor (offsetParent != null on non-fixed elements), and
visibility != "hidden". Catches the common framework pattern of
rendering the node into the DOM before the layout has painted it.
Ms(u64)
A fixed wall-clock delay after navigation start.
Implementations§
Trait Implementations§
impl Eq for Wait
impl StructuralPartialEq for Wait
Auto Trait Implementations§
impl Freeze for Wait
impl RefUnwindSafe for Wait
impl Send for Wait
impl Sync for Wait
impl Unpin for Wait
impl UnsafeUnpin for Wait
impl UnwindSafe for Wait
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.