Skip to main content

AppiumCommand

Enum AppiumCommand 

Source
pub enum AppiumCommand {
    FindElement(By),
    FindElementWithContext(By, String),
    FindElements(By),
    FindElementsWithContext(By, String),
    Custom(Method, String, Option<Value>),
}
Expand description

Basic Appium commands

Use Custom if you want to implement anything non-standard. Those commands are to be used with issue_cmd (fantoccini::Client::issue_cmd).

Variants§

§

FindElement(By)

§

FindElementWithContext(By, String)

§

FindElements(By)

§

FindElementsWithContext(By, String)

§

Custom(Method, String, Option<Value>)

Trait Implementations§

Source§

impl Debug for AppiumCommand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for AppiumCommand

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for AppiumCommand

Source§

impl WebDriverCompatibleCommand for AppiumCommand

Source§

fn endpoint( &self, base_url: &Url, session_id: Option<&str>, ) -> Result<Url, ParseError>

The endpoint to send the request to.
Source§

fn method_and_body(&self, _request_url: &Url) -> (Method, Option<String>)

The HTTP request method to use, and the request body for the request. Read more
Source§

fn is_new_session(&self) -> bool

Return true if this command starts a new WebDriver session.
Source§

fn is_legacy(&self) -> bool

Return true if this session should only support the legacy webdriver protocol. Read more

Auto Trait Implementations§

§

impl Forget for AppiumCommand

§

impl Freeze for AppiumCommand
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, *const [u8] is !null: Freeze, PhantomData<[u8]>: Freeze, PhantomData<Value>: Freeze, *const LeafNode<String, Value> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(String, Value)>>: Freeze,

§

impl Move for AppiumCommand

§

impl RefUnwindSafe for AppiumCommand

§

impl Send for AppiumCommand
where RawVecInner: Send, BoxRaw<[u8]>: Send, NodeRef<Owned, String, Value, LeafOrInternal>: Send, BoxRaw<(String, Value)>: Send,

§

impl Sync for AppiumCommand
where RawVecInner: Sync, BoxRaw<[u8]>: Sync, NodeRef<Owned, String, Value, LeafOrInternal>: Sync, BoxRaw<(String, Value)>: Sync,

§

impl Unpin for AppiumCommand
where *const u8 is !null: Unpin, Box<[u8]>: Unpin, *const LeafNode<String, Value> is !null: Unpin, Box<(String, Value)>: Unpin,

§

impl UnsafeUnpin for AppiumCommand

§

impl UnwindSafe for AppiumCommand
where RawVecInner: UnwindSafe, BoxRaw<[u8]>: UnwindSafe, BTreeMap<String, Value>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more