//! iOS-specific features
use async_trait::async_trait;
use fantoccini::error::CmdError;
use http::Method;
use crate::{AppiumClientTrait, IOSClient};
use crate::commands::AppiumCommand;
/// Simulate device shake
#[async_trait]
pub trait ShakesDevice : AppiumClientTrait {
/// Simulate shaking the device.
async fn shake(&self) -> Result<(), CmdError> {
self.issue_cmd(AppiumCommand::Custom(
Method::POST,
"appium/device/shake".to_string(),
None
)).await?;
Ok(())
}
}
impl ShakesDevice for IOSClient {}