Please find the below logs. Wait for some time and exit with “unable to find element”
Appium] Welcome to Appium v1.6.4
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“bundleId”:“com.cnn.iphone”,“automationName”:“XCUITest”,“browserName”:“iOS”,“udid”:“41b1798401b6cd3346d045620771579b93f9b6b4”,“platformName”:“iOS”,“version”:“10.2.1”,“deviceName”:“Art Phone”,“platform”:“Mac”}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“bundleId”:“com.cnn.iphone”,“automationName”:“XCUITest”,“browserName”:“iOS”,“udid”:“41b1798401b6cd3346d045620771579b93f9b6b4”,“platformName”:“iOS”,“version”:“10.2.1”,“deviceName”:“Art Phone”,“platform”:“Mac”},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1496033096984 (10:14:56 GMT+0530 (IST))
[Appium] Creating new XCUITestDriver (v2.27.2) session
[Appium] Capabilities:
[Appium] bundleId: ‘com.cnn.iphone’
[Appium] automationName: ‘XCUITest’
[Appium] browserName: ‘iOS’
[Appium] udid: ‘41b1798401b6cd3346d045620771579b93f9b6b4’
[Appium] platformName: ‘iOS’
[Appium] version: ‘10.2.1’
[Appium] deviceName: ‘Art Phone’
[Appium] platform: ‘Mac’
[XCUITest] XCUITestDriver version: 2.27.2
[BaseDriver] The following capabilities were provided, but are not recognized by appium: version, platform.
[BaseDriver] Session created with session id: 0ea389a9-be05-49df-9fe0-a5ab716e4bad
[XCUITest] Xcode version set to ‘8.3.2’ (tools v8.3.2.0.1.1492020469)
[XCUITest] iOS SDK Version set to ‘10.3’
[BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1496033097059 (10:14:57 GMT+0530 (IST))
[XCUITest] Available devices: 41b1798401b6cd3346d045620771579b93f9b6b4
[XCUITest] Creating iDevice object with udid ‘41b1798401b6cd3346d045620771579b93f9b6b4’
[XCUITest] Determining device to run tests on: udid: ‘41b1798401b6cd3346d045620771579b93f9b6b4’, real device: true
[BaseDriver] Event ‘appConfigured’ logged at 1496033097335 (10:14:57 GMT+0530 (IST))
[BaseDriver] Event ‘resetStarted’ logged at 1496033097336 (10:14:57 GMT+0530 (IST))
[XCUITest] Reset: running ios real device reset flow
[BaseDriver] Event ‘resetComplete’ logged at 1496033097338 (10:14:57 GMT+0530 (IST))
[iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[iOSLog] Found idevicesyslog: ‘/usr/local/bin/idevicesyslog’
[BaseDriver] Event ‘logCaptureStarted’ logged at 1496033097489 (10:14:57 GMT+0530 (IST))
[XCUITest] Setting up real device
[BaseDriver] Event ‘wdaStartAttempted’ logged at 1496033097495 (10:14:57 GMT+0530 (IST))
[XCUITest] Using WDA path: ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Using WDA agent: ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[XCUITest] Killing hanging processes
[XCUITest] iproxy exited with code ‘null’
[XCUITest] Cannot parse major and minor version numbers from platformVersion “undefined”. Will build for the default platform instead
[XCUITest] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=41b1798401b6cd3346d045620771579b93f9b6b4 -configuration Debug’ in directory ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Output from xcodebuild will not be logged
[XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[XCUITest] Log file for xcodebuild test: /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Logs/Test/D7BA5396-4773-4226-92F4-0B040F6D2A0B/Session-WebDriverAgentRunner-2017-05-29_101508-dSIypq.log
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Got response with status 200: “{\n “value” : {\n “state” : “success”,\n “os” : {\n “name” : “iOS”,\n “version” : “10.2.1”\n },\n “ios” : {\n “simulatorVersion” : “10.2.1”,\n “ip” : “192.168.88.247”\n },\n “build” : {\n “time” : “May 28 2017 19:11:42”\n }\n },\n “sessionId” : “A696D4C9-82EF-400F-BF3E-917E4FF53C01”,\n “status” : 0\n}”
[XCUITest] WebDriverAgent running on ip ‘192.168.88.247’
[XCUITest] WebDriverAgent successfully started after 14494ms
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1496033118278 (10:15:18 GMT+0530 (IST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.cnn.iphone”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[JSONWP Proxy] Got response with status 200: {“value”:{“sessionId”:“88BA03A7-B03E-47DB-B75C-AA70E2BAE65E”,“capabilities”:{“device”:“iphone”,“browserName”:“CNN”,“sdkVersion”:“10.2.1”,“CFBundleIdentifier”:“com.cnn.iphone”}},“sessionId”:“88BA03A7-B03E-47DB-B75C-AA70E2BAE65E”,“status”:0}
[BaseDriver] Event ‘wdaSessionStarted’ logged at 1496033123041 (10:15:23 GMT+0530 (IST))
[XCUITest] No WDA derived data folders have been found.
[BaseDriver] Event ‘wdaPermsAdjusted’ logged at 1496033123045 (10:15:23 GMT+0530 (IST))
[BaseDriver] Event ‘wdaStarted’ logged at 1496033123045 (10:15:23 GMT+0530 (IST))
[XCUITest] Setting initial orientation to ‘PORTRAIT’
[JSONWP Proxy] Proxying [POST /orientation] to [POST http://localhost:8100/session/88BA03A7-B03E-47DB-B75C-AA70E2BAE65E/orientation] with body: {“orientation”:“PORTRAIT”}
[JSONWP Proxy] Got response with status 200: {“value”:{},“sessionId”:“88BA03A7-B03E-47DB-B75C-AA70E2BAE65E”,“status”:0}
[BaseDriver] Event ‘orientationSet’ logged at 1496033123325 (10:15:23 GMT+0530 (IST))
[Appium] New XCUITestDriver session created successfully, session 0ea389a9-be05-49df-9fe0-a5ab716e4bad added to master session list
[BaseDriver] Event ‘newSessionStarted’ logged at 1496033123329 (10:15:23 GMT+0530 (IST))
[MJSONWP] Responding to client with driver.createSession() result: {“webStorageEnabled”:false,“locationContextEnabled”:false,“browserName”:“iOS”,“platform”:“Mac”,“javascriptEnabled”:true,“databaseEnabled”:false,“takesScreenshot”:true,“networkConnectionEnabled”:false,“bundleId”:“com.cnn.iphone”,“automationName”:“XCUITest”,“udid”:“41b1798401b6cd3346d045620771579b93f9b6b4”,“platformName”:“iOS”,“version”:“10.2.1”,“deviceName”:“Art Phone”}
[HTTP] <-- POST /wd/hub/session 200 26355 ms - 443
[HTTP] --> POST /wd/hub/session/0ea389a9-be05-49df-9fe0-a5ab716e4bad/element {“using”:“id”,“value”:“WATCH NOW”}
[MJSONWP] Calling AppiumDriver.findElement() with args: [“id”,“WATCH NOW”,“0ea389a9-be05-49df-9fe0-a5ab716e4bad”]
[XCUITest] Executing command ‘findElement’
[BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[BaseDriver] Waiting up to 0 ms for condition
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/88BA03A7-B03E-47DB-B75C-AA70E2BAE65E/element] with body: {“using”:“id”,“value”:“WATCH NOW”}
[JSONWP Proxy] Got response with status 200: {“value”:{“using”:“id”,“value”:“WATCH NOW”,“description”:“unable to find an element”},“sessionId”:“88BA03A7-B03E-47DB-B75C-AA70E2BAE65E”,“status”:7}
[HTTP] <-- POST /wd/hub/session/0ea389a9-be05-49df-9fe0-a5ab716e4bad/element 500 111872 ms - 164