hello everyone,
I finally succeed to start an app with xcuitestdriver and now i would use safari but when i remove app capability and add the browser name capability the server start wda and wait for eternity and sometime it says that :
[JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"10.2\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"10.2\",\n \"ip\" : \"172.30.3.70\"\n },\n \"build\" : {\n \"time\" : \"Apr 10 2017 17:19:55\"\n }\n },\n \"sessionId\" : \"C9EAF975-8A75-4822-9D33-A3E8E83EFDCD\",\n \"status\" : 0\n}"
[XCUITest] WebDriverAgent running on ip '172.30.3.70'
[XCUITest] WebDriverAgent successfully started after 17366ms
[BaseDriver] Event 'wdaSessionAttempted' logged at 1491894442736 (09:07:22 GMT+0200 (CEST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTyping Frequency":60,"shouldUseSingletonTestManager":true}}
and then
[JSONWP Proxy] Got response with status 200: {"value":"Failed to launch com.apple.mobilesafari application","sessionId":"C92634CD-775D-416A-A02D-5A622A53C7FC","status":13}
[XCUITest] Failed to create WDA session. Retrying...
[BaseDriver] Event 'wdaSessionAttempted' logged at 1491899026261 (10:23:46 GMT+0200 (CEST))
[XCUITest] Sending createSession command to WDA
i saw many topic about that but i don’t really get how did the fix it …
here are my desired caps :
sCaps.setCapability("platformVersion", "10.2");
sCaps.setCapability("showIOSLog", false);
sCaps.setCapability("automationName", "XCUITest");
sCaps.setCapability("browserName", "Safari");
sCaps.setCapability("app", "");
sCaps.setCapability("udid", "MYUDID");
sCaps.setCapability("platformName", "iOS");
sCaps.setCapability("deviceName", "iPad de admin");
my environnement :
iPad air 2
appium1.6.4 < GUI
i use selenium grid
IOS10.2
thx to help me (i can provide more logs and more information if it’s necessary)