Enum appium_client::commands::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
impl Debug for AppiumCommand
source§impl PartialEq for AppiumCommand
impl PartialEq for AppiumCommand
source§fn eq(&self, other: &AppiumCommand) -> bool
fn eq(&self, other: &AppiumCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl WebDriverCompatibleCommand for AppiumCommand
impl WebDriverCompatibleCommand for AppiumCommand
source§fn endpoint(
&self,
base_url: &Url,
session_id: Option<&str>
) -> Result<Url, ParseError>
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>)
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
fn is_new_session(&self) -> bool
Return true if this command starts a new WebDriver session.
impl StructuralPartialEq for AppiumCommand
Auto Trait Implementations§
impl RefUnwindSafe for AppiumCommand
impl Send for AppiumCommand
impl Sync for AppiumCommand
impl Unpin for AppiumCommand
impl UnwindSafe for AppiumCommand
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