This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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: {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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(); |