appium_client/commands/ios.rs
1//! iOS-specific features
2use async_trait::async_trait;
3use fantoccini::error::CmdError;
4use http::Method;
5use crate::{AppiumClientTrait, IOSClient};
6use crate::commands::AppiumCommand;
7
8/// Simulate device shake
9#[async_trait]
10pub trait ShakesDevice : AppiumClientTrait {
11 /// Simulate shaking the device.
12 async fn shake(&self) -> Result<(), CmdError> {
13 self.issue_cmd(AppiumCommand::Custom(
14 Method::POST,
15 "appium/device/shake".to_string(),
16 None
17 )).await?;
18
19 Ok(())
20 }
21}
22
23impl ShakesDevice for IOSClient {}