pub struct IOSCapabilities { /* private fields */ }
Expand description

iOS capabilities

Implementations§

source§

impl IOSCapabilities

source

pub fn new() -> IOSCapabilities

Creates new empty capability set for iOS (with driver autoselected by Appium).

source

pub fn new_xcui() -> IOSCapabilities

Creates empty capability set for XCuiTest iOS driver.

Trait Implementations§

source§

impl AppCapable for IOSCapabilities

source§

fn app(&mut self, app_path: &str)

The path to an installable application.
source§

fn other_apps(&mut self, paths: &[&str])

App or list of apps (as a JSON array) to install prior to running tests. Read more
source§

fn no_reset(&mut self, no_reset: bool)

Don’t reset app state before this session. Read more
source§

fn full_reset(&mut self, full_reset: bool)

Perform a complete reset. Read more
source§

fn print_page_source_on_find_failure(&mut self, value: bool)

When a find operation fails, print the current page source. Defaults to false. Read more
source§

impl AppiumCapability for IOSCapabilities

source§

fn automation_name(&mut self, automation_name: &str)

Set the automation driver to use (the engine for tests, eg. XCuiTest for iOS). Read more
source§

fn platform_version(&mut self, version: &str)

The version of a platform, e.g., for iOS, “16.0”
source§

fn device_name(&mut self, device_name: &str)

The name of a particular device to automate. Read more
source§

fn set_str(&mut self, name: &str, value: &str)

Sets a string capability. Read more
source§

fn set_number(&mut self, name: &str, value: Number)

Sets a number capability. Read more
source§

fn set_bool(&mut self, name: &str, value: bool)

Sets a boolean capability. Read more
source§

impl AppiumSettingsCapable for IOSCapabilities

source§

fn set_setting(&mut self, name: &str, value: Value)

source§

impl Clone for IOSCapabilities

source§

fn clone(&self) -> IOSCapabilities

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for IOSCapabilities

source§

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

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

impl Default for IOSCapabilities

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Deref for IOSCapabilities

§

type Target = Map<String, Value>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for IOSCapabilities

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl From<IOSCapabilities> for Capabilities

source§

fn from(value: IOSCapabilities) -> Self

Converts to this type from the input type.
source§

impl HasBattery<IOSCapabilities> for IOSClient

source§

fn battery_info<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<BatteryInfo<Caps>, CmdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

source§

impl PartialEq for IOSCapabilities

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl UdidCapable for IOSCapabilities

source§

fn udid(&mut self, udid: &str)

Device id. Read more
source§

impl XCUITestAppCompatible for IOSCapabilities

source§

fn bundle_id(&mut self, id: &str)

Bundle id of app. Looks like app package (com.my.app).
source§

fn localizable_strings_dir(&mut self, dir: &str)

Where to look for localizable strings. Default en.lproj
source§

fn language(&mut self, language: &str)

Language to set for the simulator / emulator. Read more
source§

fn locale(&mut self, locale: &str)

Locale to set for the simulator / emulator. Read more
source§

fn calendar_format(&mut self, value: &str)

Calendar format to set for the iOS Simulator (eg. gregorian).
source§

fn app_push_timeout(&mut self, duration: Duration)

Timeout for application upload in millisecond, on real devices
source§

fn app_install_strategy(&mut self, value: &str)

Select application installation strategy for real devices. Read more
source§

fn auto_accept_alerts(&mut self, value: bool)

Accept all iOS alerts automatically if they pop up. Read more
source§

impl Eq for IOSCapabilities

source§

impl StructuralEq for IOSCapabilities

source§

impl StructuralPartialEq for IOSCapabilities

Auto Trait Implementations§

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> 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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