Getting this error:
Appium server has started…
Oct 28, 2016 2:22:39 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel’s Law holds true on the remote end
[HTTP] --> POST /wd/hub/session {“capabilities”:{“desiredCapabilities”:{“app”:"/Volumes/Automation/XXXXXXXX.ipa",“noReset”:true,“newCommandTimeout”:900,“platformVersion”:“9.3.5”,“bundleId”:“com.YYYYY.XXXXXXXX”,“platformName”:“iOS”,“udid”:“79b89XXXXXXXXXX97f32320ea6dXXXXXXXd3121c”,“deviceName”:“OIT-MIO00040”},“requiredCapabilities”:null},“desiredCapabilities”:{“app”:"/Volumes/Automation/XXXXXXXX.ipa",“noReset”:true,“newCommandTimeout”:900,“platformVersion”:“9.3.5”,“bundleId”:“com.YYYYY.XXXXXXXX”,“platformName”:“iOS”,“udid”:“79b89XXXXXXXXXX97f32320ea6dXXXXXXXd3121c”,“deviceName”:“OIT-MIO00040”},“requiredCapabilities”:null}
[debug] [MJSONWP] Bad parameters: BadParametersError: Parameters were incorrect. We wanted {“required”:[“desiredCapabilities”],“optional”:[“requiredCapabilities”,“sessionId”,“id”]} and you sent [“capabilities”,“desiredCapabilities”,“requiredCapabilities”]
[HTTP] <-- POST /wd/hub/session 400 6 ms - 201
Oct 28, 2016 2:22:40 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Falling back to straight W3C remote end connection
[HTTP] --> POST /wd/hub/session {“capabilities”:{“desiredCapabilities”:{“app”:"/Volumes/Automation/XXXXXXXX.ipa",“noReset”:true,“newCommandTimeout”:900,“platformVersion”:“9.3.5”,“bundleId”:“com.YYYYY.XXXXXXXX”,“platformName”:“iOS”,“udid”:“79b89XXXXXXXXXX97f32320ea6dXXXXXXXd3121c”,“deviceName”:“OIT-MIO00040”},“requiredCapabilities”:null}}
[debug] [MJSONWP] Bad parameters: BadParametersError: Parameters were incorrect. We wanted {“required”:[“desiredCapabilities”],“optional”:[“requiredCapabilities”,“sessionId”,“id”,“sessionId”,“id”]} and you sent [“capabilities”]
[HTTP] <-- POST /wd/hub/session 400 2 ms - 173
Oct 28, 2016 2:22:40 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Falling back to original OSS JSON Wire Protocol.
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Volumes/Automation/XXXXXXXX.ipa",“noReset”:true,“newCommandTimeout”:900,“platformVersion”:“9.3.5”,“bundleId”:“com.YYYYY.XXXXXXXX”,“platformName”:“iOS”,“udid”:“79b89XXXXXXXXXX97f32320ea6dXXXXXXXd3121c”,“deviceName”:“OIT-MIO00040”},“requiredCapabilities”:null}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Volumes/Automatio…
[Appium] Creating new IosDriver session
[Appium] Capabilities:
[Appium] app: ‘/Volumes/Automation/XXXXXXXX.ipa’
[Appium] noReset: true
[Appium] newCommandTimeout: 900
[Appium] platformVersion: ‘9.3.5’
[Appium] bundleId: ‘com.YYYYY.XXXXXXXX’
[Appium] platformName: ‘iOS’
[Appium] udid: ‘79b89XXXXXXXXXX97f32320ea6dXXXXXXXd3121c’
[Appium] deviceName: ‘OIT-MIO00040’
[BaseDriver] Session created with session id: 8c9d87d5-799c-474d-895e-ecb63a841c62
[Xcode] Finding XcodePath by symlink because Error: Command ‘xcode-select --print-path’ errored out: Error: spawn xcode-select ENOENT
at exports._errnoException (util.js:1026:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
[debug] [iOS] Xcode version set to 8.0
[iOS] SessionNotCreatedError: A new session could not be created. Details: Appium’s IosDriver does not support xcode version 8.0. Apple has deprecated UIAutomation. Use the “XCUITest” automationName capability instead.
at IosDriver.createSession$ (lib/driver.js:120:28)
Setting the desired capabilities like this in Eclipse:
if(platformInfoObject.PlatformName.equalsIgnoreCase(“iOS”)){
AppiumDriver<WebElement> driver = null;
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("platformName", platformInfoObject.PlatformName);
capabilities.setCapability("platformVersion", "9.3.5");
capabilities.setCapability("deviceName", "OIT-MIO00040");
capabilities.setCapability("udid", platformInfoObject.PlatformID);
capabilities.setCapability("newCommandTimeout", 900);
capabilities.setCapability("bundleId", "com.YYYYY.XXXXXXXX");
//capabilities.setCapability("autoAcceptAlerts", true);
capabilities.setCapability("noReset", true);
capabilities.setCapability("app", platformInfoObject.AppPath);
driver = new IOSDriver<WebElement>(new URL("http://"+platformInfoObject.ServerURL+":"+platformInfoObject.ServerPortNumber+"/wd/hub"), capabilities);
driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
return driver;
}
Please Let me know what wrong i am doing and how to use XCUITest insted of Appium IOS driver