pub enum ElementState {
Visible,
Hidden,
Enabled,
Editable,
Stable,
}Expand description
An element state that ElementHandle::wait_for_element_state can poll for.
Mirrors Playwright’s ElementState (a subset). Stable means the element’s
bounding box has stopped changing between polls.
Variants§
Visible
The element is visible (non-zero box, not display:none/visibility:hidden).
Hidden
The element is hidden.
Enabled
The element is enabled (not [disabled]).
Editable
The element is editable (contenteditable or a mutable form field).
Stable
The element’s bounding box is not changing between successive samples.
Trait Implementations§
Source§impl Clone for ElementState
impl Clone for ElementState
Source§fn clone(&self) -> ElementState
fn clone(&self) -> ElementState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ElementState
Source§impl Debug for ElementState
impl Debug for ElementState
impl Eq for ElementState
Source§impl PartialEq for ElementState
impl PartialEq for ElementState
impl StructuralPartialEq for ElementState
Auto Trait Implementations§
impl Freeze for ElementState
impl RefUnwindSafe for ElementState
impl Send for ElementState
impl Sync for ElementState
impl Unpin for ElementState
impl UnsafeUnpin for ElementState
impl UnwindSafe for ElementState
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