pub enum WaitConditionType {
Text,
Element,
Focused,
NotVisible,
Stable,
TextGone,
Value,
}Expand description
Type of wait condition for the wait use case.
This represents the kind of condition to wait for, without the associated data. The actual condition data is provided separately.
Variants§
Text
Wait for specific text to appear on screen.
Element
Wait for an element to exist.
Focused
Wait for an element to be focused.
NotVisible
Wait for an element to disappear.
Stable
Wait for screen to stabilize (no changes).
TextGone
Wait for specific text to disappear.
Value
Wait for an element to have a specific value.
Implementations§
Source§impl WaitConditionType
impl WaitConditionType
Sourcepub fn parse(s: &str) -> Result<Self, WaitConditionTypeError>
pub fn parse(s: &str) -> Result<Self, WaitConditionTypeError>
Parse a wait condition type from a string (case-insensitive).
Sourcepub fn requires_target(&self) -> bool
pub fn requires_target(&self) -> bool
Returns true if this condition requires a target element reference.
Sourcepub fn requires_text(&self) -> bool
pub fn requires_text(&self) -> bool
Returns true if this condition requires text to match.
Trait Implementations§
Source§impl Clone for WaitConditionType
impl Clone for WaitConditionType
Source§fn clone(&self) -> WaitConditionType
fn clone(&self) -> WaitConditionType
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 WaitConditionType
impl Debug for WaitConditionType
Source§impl Display for WaitConditionType
impl Display for WaitConditionType
Source§impl FromStr for WaitConditionType
impl FromStr for WaitConditionType
Source§impl Hash for WaitConditionType
impl Hash for WaitConditionType
Source§impl PartialEq for WaitConditionType
impl PartialEq for WaitConditionType
impl Copy for WaitConditionType
impl Eq for WaitConditionType
impl StructuralPartialEq for WaitConditionType
Auto Trait Implementations§
impl Freeze for WaitConditionType
impl RefUnwindSafe for WaitConditionType
impl Send for WaitConditionType
impl Sync for WaitConditionType
impl Unpin for WaitConditionType
impl UnwindSafe for WaitConditionType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.