Skip to content

Instantly share code, notes, and snippets.

[HTTP] {"script":"mobile: launchApp","args":[{"bundleId":"com.apple.mobilesafari","arguments":["-u","my://url"]}]}
[debug] [W3C (d05cd7a3)] Calling AppiumDriver.execute() with args: ["mobile: launchApp",[{"bundleId":"com.apple.mobilesafari","arguments":["-u","my://url"]]}],"d05cd7a3-575e-4e48-8587-079f2ad31a5b"]
[debug] [XCUITest] Executing command 'execute'
[debug] [WD Proxy] Proxying [POST /wda/apps/launch] to [POST http://localhost:8100/session/CCB4F15E-A379-4C9E-AEC5-ECB4104F823D/wda/apps/launch] with body: {"bundleId":"com.apple.mobilesafari","arguments":["-u","my://url"]]}
[debug] [WD Proxy] Got response with status 200: {"value":{},"sessionId":"CCB4F15E-A379-4C9E-AEC5-ECB4104F823D","status":0}
[debug] [XCUITest] Connection to WDA timed out
[debug] [iProxy] recv failed: Operation not permitted
[debug] [W3C (d05cd7a3)] Responding to client with driver.execute() result: {}
@biwkf
biwkf / gist:b0ebb9940e6341ed5e588f148b4381a8
Created February 27, 2019 15:10
Automating deeplinks with Appium on iOS real device
/* On a real device it is not possible to simply call driver.get("url"), doing so will open SIRI and query with "url" resulting in a search.
Instead we can take advantage of Safari's launch parameters and pass deep link URL as argument.
Below is an example: */
String deepLinkURL = "deeplink://";
driver.executeScript("mobile: terminateApp", ImmutableMap.of("bundleId", "com.apple.mobilesafari"));
List args = new ArrayList();