(server_url: &str, udid: &str, body: Value)
| 198 | } |
| 199 | |
| 200 | fn service_tap_element(server_url: &str, udid: &str, body: Value) -> anyhow::Result<Value> { |
| 201 | let mut body = body; |
| 202 | if let Some(object) = body.as_object_mut() { |
| 203 | object.insert("action".to_owned(), Value::String("tap".to_owned())); |
| 204 | } else { |
| 205 | body = serde_json::json!({ "action": "tap" }); |
| 206 | } |
| 207 | service_action(server_url, udid, &body) |
| 208 | } |
| 209 | |
| 210 | #[allow(clippy::too_many_arguments)] |
| 211 | fn service_wait_for_selector( |
no test coverage detected