pub enum WaitForState {
Attached,
Detached,
Visible,
Hidden,
}Expand description
The state to wait for when using [Locator::wait_for()].
Matches Playwright’s WaitForSelectorState across all language bindings.
See: https://playwright.dev/docs/api/class-locator#locator-wait-for
Variants§
Attached
Wait for the element to be present in the DOM (attached).
Detached
Wait for the element to be removed from the DOM.
Visible
Wait for the element to be visible (the default).
Hidden
Wait for the element to be hidden (invisible or not in the DOM).
Trait Implementations§
Source§impl Clone for WaitForState
impl Clone for WaitForState
Source§fn clone(&self) -> WaitForState
fn clone(&self) -> WaitForState
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 WaitForState
impl Debug for WaitForState
Source§impl PartialEq for WaitForState
impl PartialEq for WaitForState
Source§impl Serialize for WaitForState
impl Serialize for WaitForState
impl Copy for WaitForState
impl Eq for WaitForState
impl StructuralPartialEq for WaitForState
Auto Trait Implementations§
impl Freeze for WaitForState
impl RefUnwindSafe for WaitForState
impl Send for WaitForState
impl Sync for WaitForState
impl Unpin for WaitForState
impl UnsafeUnpin for WaitForState
impl UnwindSafe for WaitForState
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