Enum Action
pub enum Action {
ClickNamed(String),
ClickAt(f64, f64),
TapNamed(String),
TapAt(f64, f64),
SwipeAt(f64, f64, f64, f64),
Key(String),
Type(String),
Modifiers(Vec<String>),
WaitForNamed {
target: String,
timeout_ms: u64,
},
Expect(SemanticExpectation),
Perform {
target: String,
semantic_target: Option<String>,
action: SemanticAction,
},
Invoke(Invocation),
}Expand description
One thing to do to the app.
Variants§
ClickNamed(String)
Click the centre of the widget addressed by name — either its
test id or the Parent/Child[index] path fallback.
ClickAt(f64, f64)
Click at raw logical coordinates.
TapNamed(String)
Direct-touch tap on a named widget.
TapAt(f64, f64)
Direct-touch tap at logical coordinates.
SwipeAt(f64, f64, f64, f64)
Drag one touch from start to end, exercising tap cancellation and pixel-precise scrolling.
Key(String)
Press and release one named key (Enter, Tab, Escape, Space,
Backspace, arrows) or a single character.
Type(String)
Type a string, one press/release pair per character.
Modifiers(Vec<String>)
Hold the given modifiers for subsequent actions. Empty clears them.
WaitForNamed
Drive frames until a named retained widget appears, or fail after the bounded timeout. This lets saved scenarios synchronize with workers and asynchronous model delegates without timing sleeps.
Expect(SemanticExpectation)
Require semantic output or state at this exact point in a scenario.
Perform
Ask the named widget to perform an accessibility action, through the same path as a live accessibility request.
Invoke(Invocation)
Invoke one published action by address, through the same resolution, availability, confirmation and strict binding the live host applies.
Trait Implementations§
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more