MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / service_tap_element

Function service_tap_element

packages/server/src/main/service_client.rs:200–208  ·  view source on GitHub ↗
(server_url: &str, udid: &str, body: Value)

Source from the content-addressed store, hash-verified

198}
199
200fn 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)]
211fn service_wait_for_selector(

Callers 2

mainFunction · 0.85
run_maestro_commandFunction · 0.85

Calls 2

service_actionFunction · 0.85
insertMethod · 0.80

Tested by

no test coverage detected