Cannot find WebViewContext for WkWebView on iOS Simulator with Appium - ios

I currently have no access to the WKWebView via Appium. I start the driver with the following capabilities:
var options = new AppiumOptions();
options.AddAdditionalCapability("automationName", "XCUITest");
options.AddAdditionalCapability("platformName", "iOS");
options.AddAdditionalCapability("platformVersion", "15.5");
options.AddAdditionalCapability("deviceName", "iPad (5th generation)");
options.AddAdditionalCapability("language", "DE");
options.AddAdditionalCapability("app", "/Users/testautomatisierung/Projects/TestAppWebView/TestAppWebView/bin/iPhoneSimulator/Debug/device-builds/ipad6.4-15.5/TestAppWebView.app");
options.AddAdditionalCapability("derivedDataPath", "/Users/testautomatisierung/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu");
options.AddAdditionalCapability("webviewConnectTimeout", "90000");
options.AddAdditionalCapability("safariLogAllCommunication", "true");
My Appium Server Logs tell me:
[debug] [RemoteDebugger] Found app id key 'PID:6483' for bundle 'com.apple.WebKit.WebContent'
[debug] [RemoteDebugger] Found app id key 'PID:6483' for bundle 'process-com.apple.WebKit.WebContent'
[debug] [RemoteDebugger] Found app id key 'PID:6483' for bundle 'process-SafariViewService'
[debug] [RemoteDebugger] Found app id key 'PID:6483' for bundle 'com.apple.SafariViewService'
[debug] [RemoteDebugger] Found app id key 'PID:6483' for bundle '*'
[debug] [RemoteDebugger] Found app id key 'PID:6483' for bundle 'de.TestAppWebView'
[debug] [RemoteDebugger] Trying out the possible app ids: PID:6483 (try #1 of 20)
[debug] [RemoteDebugger] Attempting app 'PID:6483'
[debug] [RemoteDebugger] Sending '_rpc_forwardGetListing:' message to app 'PID:6483' (id: 42): 'connectToApp'
[debug] [ios-device] Sending message to Web Inspector:
[debug] [ios-device] {
[debug] [ios-device] "__argument": {
[debug] [ios-device] "WIRConnectionIdentifierKey": "470505be-7934-41cd-881e-d2e390be4ffd",
[debug] [ios-device] "WIRApplicationIdentifierKey": "PID:6483"
[debug] [ios-device] },
[debug] [ios-device] "__selector": "_rpc_forwardGetListing:"
[debug] [ios-device] }
[debug] [ios-device] Received message from Web Inspector:
[debug] [ios-device] {
[debug] [ios-device] "__argument": {
[debug] [ios-device] "WIRApplicationIdentifierKey": "PID:6483",
[debug] [ios-device] "WIRListingKey": {}
[debug] [ios-device] },
[debug] [ios-device] "__selector": "_rpc_applicationSentListing:"
[debug] [ios-device] }
[debug] [RemoteDebugger] Received response from send (id: 42): '["PID:6483",{}]'
[debug] [RemoteDebugger] Sending to Web Inspector took 2ms
[debug] [RemoteDebugger] Empty page dictionary received
[debug] [RemoteDebugger] Error checking application: 'Empty page dictionary received'. Retrying connection
[RemoteDebugger] Could not connect to a valid app after 20 tries.
[debug] [XCUITest] No available web pages: Could not connect to a valid app after 20 tries.
[debug] [XCUITest] No web frames found.
[debug] [W3C (4114d2e3)] Responding to client with driver.getContexts() result: ["NATIVE_APP"]
In Safari i enable the development modus and i can find my WebAppView on the simulator. Can someone help me? Thanks

Related

An unknown server-side error occurred while processing the command. Original error: Could not navigate to webview; there are none

Desired capabilities
"appium:platformName": "iOS",
"appium:platformVersion": "15.0",
"appium:deviceName": "iPhone 13 pro Max",
"appium:automationName": "XCUITest",
"udid": "0B2392E0-F3A7-4860-8E01-98C2B43EE6C9",
"autoWebview": "true"
ENVIRONMENT:
1)Appium Server GUI : 1.22.0
2)Xcode - 13.0
3)appium inspector - 2022.2.1
4)Java - 18.0.2.1
5)Selenium - 3.11.0
6)java-client - 6.0.0-BETA5
7)Eclipse-Version: 2022-06 (4.24.0)
8)os.name: 'Mac OS X
9)os.version: '12.5.1'
NOTE:
It works fine on browserstack but the issue is observed when i try to switch to webview on local. Is there any other capabilities that I need to add to switch the context from native to webview
Appium logs
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, xxxxx
[RemoteDebugger] Found app id key 'PID:41591' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:41591' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:41591' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:41591' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:41591' for bundle '*'
[RemoteDebugger] Found app id key 'PID:41591' for bundle 'xxxxxxx'
[RemoteDebugger] Trying out the possible app ids: PID:41591 (try #1 of 20)
[RemoteDebugger] Attempting app 'PID:41591'
[RemoteDebugger] Sending '_rpc_forwardGetListing:' message to app 'PID:41591' (id: 376): 'connectToApp'
[RemoteDebugger] Received response from send (id: 376): '["PID:41591",{}]'
[RemoteDebugger] Sending to Web Inspector took 1ms
[RemoteDebugger] Empty page dictionary received
[RemoteDebugger] Error checking application: 'Empty page dictionary received'. Retrying connection
[RemoteDebugger] Current applications available:
[RemoteDebugger] Application: "PID:41591"
[RemoteDebugger] id: "PID:41591"
[RemoteDebugger] isProxy: false
[RemoteDebugger] name: "com.apple.WebKit.WebContent"
[RemoteDebugger] bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger] hostId: undefined
[RemoteDebugger] isActive: true
[RemoteDebugger] isAutomationEnabled: "Unknown"
[RemoteDebugger] Application: "PID:41592"
[RemoteDebugger] id: "PID:41592"
[RemoteDebugger] isProxy: false
[RemoteDebugger] name: "com.apple.WebKit.Networking"
[RemoteDebugger] bundleId: "process-com.apple.WebKit.Networking"
[RemoteDebugger] hostId: undefined
[RemoteDebugger] isActive: true
[RemoteDebugger] isAutomationEnabled: "Unknown"
[RemoteDebugger] Application: "PID:41589"
[RemoteDebugger] id: "PID:41589"
[RemoteDebugger] isProxy: false
[RemoteDebugger] name: "xxxxxx"
[RemoteDebugger] bundleId: "process-Zetadocs.Approval.Mobile.iOS"
[RemoteDebugger] hostId: undefined
[RemoteDebugger] isActive: true
[RemoteDebugger] isAutomationEnabled: "Unknown"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, xxxxxxx
[RemoteDebugger] Found app id key 'PID:41591' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:41591' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:41591' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:41591' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:41591' for bundle '*'
[RemoteDebugger] Found app id key 'PID:41591' for bundle 'xxxxxx'
[RemoteDebugger] Trying out the possible app ids: PID:41591 (try #1 of 20)
[RemoteDebugger] Attempting app 'PID:41591'
[RemoteDebugger] Sending '_rpc_forwardGetListing:' message to app 'PID:41591' (id: 378): 'connectToApp'
[RemoteDebugger] Received response from send (id: 378): '["PID:41591",{}]'
[RemoteDebugger] Sending to Web Inspector took 1ms
[RemoteDebugger] Empty page dictionary received
[RemoteDebugger] Error checking application: 'Empty page dictionary received'. Retrying connection
[RemoteDebugger] Could not connect to a valid app after 20 tries.
[XCUITest] No available web pages: Could not connect to a valid app after 20 tries.
[XCUITest] No web frames found.
[XCUITest] {}
[WD Proxy] Matched '/session/35db46e3-9aab-48f8-afe5-d6e11abe8ff1' to command name 'deleteSession'
[WD Proxy] Proxying [DELETE /session/35db46e3-9aab-48f8-afe5-d6e11abe8ff1] to [DELETE http://127.0.0.1:8100/session/2DAE2402-0733-43DC-A98E-1CDD488A2CA4] with no body
[WD Proxy] Got response with status 200: {"value":null,"sessionId":null}
[DevCon Factory] Releasing connections for 0B2392E0-F3A7-4860-8E01-98C2B43EE6C9 device on any port number
[DevCon Factory] Found cached connections to release: ["0B2392E0-F3A7-4860-8E01-98C2B43EE6C9:8100"]
[DevCon Factory] Cached connections count: 0
[XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[XCUITest] Found a remote debugger session. Removing...
[RemoteDebugger] Disconnecting from remote debugger
[RemoteDebugger] Cleaning up listeners
[IOSSimulatorLog] Stopping iOS log capture
[BaseDriver] Event 'newSessionStarted' logged at 1664949451836 (11:27:31 GMT+0530 (India Standard Time))
[W3C] Encountered internal error running command: Error: Could not navigate to webview; there are none!
[W3C] at spinHandles (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/context.js:161:13)
[W3C] at spinHandles (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/context.js:168:14)
[W3C] at spinHandles (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/context.js:168:14)
[W3C] at spinHandles (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/context.js:168:14)
[W3C] at spinHandles (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/context.js:168:14)
[W3C] at spinHandles (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/context.js:168:14)
[W3C] at spinHandles (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/context.js:168:14)
[W3C] at spinHandles (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/context.js:168:14)
[W3C] at spinHandles (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/context.js:168:14)
[W3C] at XCUITestDriver.navToViewWithTitle (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/context.js:186:3)
[W3C] at XCUITestDriver.navToInitialWebview (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/context.js:222:5)
[W3C] at XCUITestDriver.start (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:528:7)
[W3C] at XCUITestDriver.createSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:262:7)
[W3C] at AppiumDriver.createSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/lib/appium.js:387:35)
[HTTP] <-- POST /wd/hub/session 500 95464 ms - 677
[HTTP]
Can anyone please help on this issue?
I had the same issue, I solved it by activating Safari Web-Inspector.
Settings -> Safari -> Advanced -> Web Inspector
Hope it works for you :)
I had the same issue, I solved it by activating Safari Web-Inspector.
Settings -> Safari -> Advanced -> Web Inspector
Hope it works for you :)

Appium IOSDriver times out, but launches iPhone simulator

My AppiumDriver code is simple enough:
var options = new AppiumOptions();
options.AddAdditionalCapability(MobileCapabilityType.PlatformName, "iOS");
options.AddAdditionalCapability(MobileCapabilityType.DeviceName, "iPhone XR");
options.AddAdditionalCapability(MobileCapabilityType.PlatformVersion, "13.0");
options.AddAdditionalCapability(CapabilityType.BrowserName, "safari");
options.AddAdditionalCapability(MobileCapabilityType.AutomationName, "XCUITest");
var driver2 =
new IOSDriver<AppiumWebElement>(
new Uri($#"http://192.168.0.41:4723/wd/hub"),
options,
new TimeSpan(0, 2, 0));
Appium (running on Mac) launches an iPhone simulator on my Mac machine
appium -a 192.168.0.41 -p 4723
But the IOSDriver constructor never completes, it just times out with exception after 120 seconds (or whatever value I put in there).
This is the output from Appium
[Appium] Welcome to Appium v1.14.2
[Appium] Non-default server args:
[Appium] address: 192.168.0.41
[Appium] Appium REST http interface listener started on 192.168.0.41:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"platformName":"iOS","deviceName":"iPhone XR","platformVersion":"13.0","browserName":"safari","automationName":"XCUITest"},"capabilities":{"firstMatch":[{"platformName":"iOS","browserName":"safari"}]}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"iOS","deviceName":"iPhone XR","platformVersion":"13.0","browserName":"safari","automationName":"XCUITest"},null,{"firstMatch":[{"platformName":"iOS","browserName":"safari"}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1568747029537 (14:03:49 GMT-0500 (Central Daylight Time))
[Appium] Could not parse W3C capabilities: 'deviceName' can't be blank
[Appium] Trying to fix W3C capabilities by merging them with JSONWP caps
[BaseDriver] The capabilities ["deviceName","platformVersion","automationName"] are not standard capabilities and should have an extension prefix
[Appium] Appium v1.14.2 creating new XCUITestDriver (v2.116.3) session
[Appium] Capabilities:
[Appium] deviceName: iPhone XR
[Appium] platformVersion: 13.0
[Appium] automationName: XCUITest
[Appium] platformName: iOS
[Appium] browserName: safari
[debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"appium:dev... and MJSONWP desired capabilities {"platformName":"iOS","devi... were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"appium:dev...
[BaseDriver] Session created with session id: 23f10772-5375-4c81-9536-5805132fc717
[debug] [XCUITest] Current user: 'patrick'
[XCUITest] iOS SDK Version set to '13.0'
[XCUITest] Simulator udid not provided
[XCUITest] Using desired caps to create a new simulator
[debug] [simctl] Creating simulator with name 'appiumTest-AA3CE20A-10E7-44EF-A669-2EE6D93D3047-iPhone XR', device type id 'iPhone XR' and runtime id 'com.apple.CoreSimulator.SimRuntime.iOS-13-0'
[iOSSim] Constructing iOS simulator for Xcode version 11.0 with udid '42D158FC-3300-43BF-81A3-5B18B783FEDD'
[XCUITest] Created simulator with udid '42D158FC-3300-43BF-81A3-5B18B783FEDD'.
[XCUITest] Determining device to run tests on: udid: '42D158FC-3300-43BF-81A3-5B18B783FEDD', real device: false
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1568747031680 (14:03:51 GMT-0500 (Central Daylight Time))
[XCUITest] Safari test requested
[debug] [BaseDriver] Event 'appConfigured' logged at 1568747031681 (14:03:51 GMT-0500 (Central Daylight Time))
[XCUITest] Continuing without capturing device logs: iOS Simulator with udid 42D158FC-3300-43BF-81A3-5B18B783FEDD is not running
[XCUITest] Setting up simulator
[debug] [iOSSim] Setting common Simulator preferences to {"RotateWindowWhenSignaledByGuest":true,"ConnectHardwareKeyboard":false}
[debug] [iOSSim] Updated 42D158FC-3300-43BF-81A3-5B18B783FEDD Simulator preferences at '/Users/patrick/Library/Preferences/com.apple.iphonesimulator.plist' with {"DevicePreferences":{"42D158FC-3300-43BF-81A3-5B18B783FEDD":{"ConnectHardwareKeyboard":false}},"RotateWindowWhenSignaledByGuest":true,"ConnectHardwareKeyboard":false}
[iOSSim] Booting Simulator with UDID 42D158FC-3300-43BF-81A3-5B18B783FEDD...
[iOSSim] Simulator with UDID 42D158FC-3300-43BF-81A3-5B18B783FEDD booted in 52 seconds
[debug] [IDB] Connecting idb service to '42D158FC-3300-43BF-81A3-5B18B783FEDD'
[XCUITest] idb will not be used for Simulator interaction. Original error: 'idb' has not been found in PATH. Is it installed? Read https://www.fbidb.io for more details
[debug] [BaseDriver] Event 'simStarted' logged at 1568747084509 (14:04:44 GMT-0500 (Central Daylight Time))
[debug] [XCUITest] Starting log capture for iOS Simulator with udid '42D158FC-3300-43BF-81A3-5B18B783FEDD', using 'xcrun simctl spawn 42D158FC-3300-43BF-81A3-5B18B783FEDD log stream --style compact'
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1568747085347 (14:04:45 GMT-0500 (Central Daylight Time))
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[debug] [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[debug] [XCUITest] Parsed BUILD_DIR configuration value: '/Users/patrick/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products'
[debug] [XCUITest] Got derived data root: '/Users/patrick/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy'
[debug] [XCUITest] Starting WebDriverAgent initialization with the synchronization key '/Users/patrick/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy'
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[debug] [XCUITest] WDA is not listening at 'http://localhost:8100/'
[debug] [XCUITest] WDA is currently not running. There is nothing to cache
[debug] [XCUITest] Trying to start WebDriverAgent 2 times with 10000ms interval
[debug] [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1568747091183 (14:04:51 GMT-0500 (Central Daylight Time))
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Killing running processes 'xcodebuild.*42D158FC-3300-43BF-81A3-5B18B783FEDD, iproxy 8100, 42D158FC-3300-43BF-81A3-5B18B783FEDD.*XCTRunner' for the device 42D158FC-3300-43BF-81A3-5B18B783FEDD...
[debug] [XCUITest] 'pgrep -ifn xcodebuild.*42D158FC-3300-43BF-81A3-5B18B783FEDD' didn't detect any matching processes. Return code: 1
[debug] [XCUITest] 'pgrep -ifn iproxy 8100' didn't detect any matching processes. Return code: 1
[debug] [XCUITest] 'pgrep -ifn 42D158FC-3300-43BF-81A3-5B18B783FEDD.*XCTRunner' didn't detect any matching processes. Return code: 1
[debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/patrick/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy -destination id=42D158FC-3300-43BF-81A3-5B18B783FEDD IPHONEOS_DEPLOYMENT_TARGET=13.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [WD Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"13.0\",\n \"sdkVersion\" : \"13.0\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"13.0\",\n \"ip\" : \"192.168.0.41\"\n },\n \"build\" : {\n \"upgradedAt\" : \"1568745012654\",\n \"time\" : \"Sep 17 2019 13:34:34\",\n \"productBundleIdentifier\" : \"com.facebook.WebDriverAgentRunner\"\n }\n },\n \"sessionId\" : \"27F6F5EA-539D-4088-9657-400A8686C4CA\",\n \"status\" : 0\n}"
[debug] [WD Proxy] Determined that the downstream protocol for proxy is MJSONWP
[debug] [XCUITest] WebDriverAgent information:
[debug] [XCUITest] {
[debug] [XCUITest] "state": "success",
[debug] [XCUITest] "os": {
[debug] [XCUITest] "name": "iOS",
[debug] [XCUITest] "version": "13.0",
[debug] [XCUITest] "sdkVersion": "13.0"
[debug] [XCUITest] },
[debug] [XCUITest] "ios": {
[debug] [XCUITest] "simulatorVersion": "13.0",
[debug] [XCUITest] "ip": "192.168.0.41"
[debug] [XCUITest] },
[debug] [XCUITest] "build": {
[debug] [XCUITest] "upgradedAt": "1568745012654",
[debug] [XCUITest] "time": "Sep 17 2019 13:34:34",
[debug] [XCUITest] "productBundleIdentifier": "com.facebook.WebDriverAgentRunner"
[debug] [XCUITest] }
[debug] [XCUITest] }
[debug] [XCUITest] WebDriverAgent successfully started after 15687ms
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1568747107016 (14:05:07 GMT-0500 (Central Daylight Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/session' to command name 'createSession'
[debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [WD Proxy] Got response with status 200: {"value":{"sessionId":"18604E24-D247-4A43-A4A8-5B8F7FCB9D54","capabilities":{"device":"iphone","browserName":"Safari","sdkVersion":"13.0","CFBundleIdentifier":"com.apple.mobilesafari"}},"sessionId":"18604E24-D247-4A43-A4A8-5B8F7FCB9D54","status":0}
[debug] [WD Proxy] Determined that the downstream protocol for proxy is MJSONWP
[debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1568747113342 (14:05:13 GMT-0500 (Central Daylight Time))
[debug] [BaseDriver] Event 'wdaStarted' logged at 1568747113343 (14:05:13 GMT-0500 (Central Daylight Time))
[XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior.
[debug] [BaseDriver] Event 'orientationSet' logged at 1568747113345 (14:05:13 GMT-0500 (Central Daylight Time))
[debug] [iOS] Selecting by url: true (expected url: 'http://192.168.0.41:4723/welcome')
[RemoteDebugger] Remote Debugger version 4.4.1
[debug] [RemoteDebugger] useNewSafari --> false
[RemoteDebugger] Setting communication protocol: using Target-based communication
[debug] [RemoteDebugger] Connecting to remote debugger through unix domain socket: '/private/tmp/com.apple.launchd.Uf5EaEsH0s/com.apple.webinspectord_sim.socket'
[debug] [RemoteDebugger] Debugger socket connected
[debug] [RemoteDebugger] Sending connection key request
[debug] [RemoteDebugger] Sending '_rpc_reportIdentifier:' message to remote debugger (id: 0)
[HTTP] --> GET /welcome
[HTTP] {}
[debug] [HTTP] Sending welcome response with params: {"message":"Let's browse!"}
[HTTP] <-- GET /welcome 200 83 ms - 124
[HTTP]
[HTTP] <-- GET /favicon.ico 200 3 ms - 1150
[HTTP]
[debug] [RemoteDebugger] Notified of connected drivers: {}.
[debug] [RemoteDebugger] Connected to application
[debug] [RemoteDebugger] Selecting application
[debug] [RemoteDebugger] Current applications available:
[debug] [RemoteDebugger] Application: 'PID:31843'
[debug] [RemoteDebugger] id: "PID:31843"
[debug] [RemoteDebugger] isProxy: false
[debug] [RemoteDebugger] name: "Safari"
[debug] [RemoteDebugger] bundleId: "com.apple.mobilesafari"
[debug] [RemoteDebugger] hostId: undefined
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] Found app id key 'PID:31843' for bundle 'com.apple.mobilesafari'
[debug] [RemoteDebugger] Trying out the possible app ids: PID:31843
[debug] [RemoteDebugger] Selecting app PID:31843 (try #1 of 20)
[debug] [RemoteDebugger] Sending '_rpc_forwardGetListing:' message to remote debugger (id: 1)
[debug] [RemoteDebugger] We were notified we might have connected to the wrong app. Using id PID:31846 instead of PID:31843
[debug] [RemoteDebugger] Notified that new application 'PID:31846' has connected
[debug] [RemoteDebugger] Found app id key 'PID:31843' for bundle 'com.apple.mobilesafari'
[debug] [RemoteDebugger] Found separate bundleId 'process-com.apple.WebKit.WebContent' acting as proxy for 'com.apple.mobilesafari', with app id 'PID:31846'
[debug] [RemoteDebugger] Using proxied app id 'PID:31846'
[debug] [RemoteDebugger] Error checking application: 'New application has connected'. Retrying connection
[debug] [RemoteDebugger] Current applications available:
[debug] [RemoteDebugger] Application: 'PID:31843'
[debug] [RemoteDebugger] id: "PID:31843"
[debug] [RemoteDebugger] isProxy: false
[debug] [RemoteDebugger] name: "Safari"
[debug] [RemoteDebugger] bundleId: "com.apple.mobilesafari"
[debug] [RemoteDebugger] hostId: undefined
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] Application: 'PID:31846'
[debug] [RemoteDebugger] id: "PID:31846"
[debug] [RemoteDebugger] isProxy: true
[debug] [RemoteDebugger] name: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] bundleId: "process-com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] hostId: "PID:31843"
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray: 'Waiting for data'
[debug] [RemoteDebugger] Found app id key 'PID:31843' for bundle 'com.apple.mobilesafari'
[debug] [RemoteDebugger] Found separate bundleId 'process-com.apple.WebKit.WebContent' acting as proxy for 'com.apple.mobilesafari', with app id 'PID:31846'
[debug] [RemoteDebugger] Trying out the possible app ids: PID:31843, PID:31846
[debug] [RemoteDebugger] Selecting app PID:31843 (try #2 of 20)
[debug] [RemoteDebugger] Sending '_rpc_forwardGetListing:' message to remote debugger (id: 2)
[debug] [RemoteDebugger] Received response from socket send: '["PID:31843",{"1":{"WIRTitleKey":"Appium/welcome","WIRTypeKey":"WIRTypeWeb","WIRURLKey":"http://192.168.0.41:4723/welcome","WIRPageIdentifierKey":1}}]'
[debug] [RemoteDebugger] Received response from socket send: '["PID:31843",{"1":{"WIRTitleKey":"Appium/welcome","WIRTypeKey":"WIRTypeWeb","WIRURLKey":"http://192.168.0.41:4723/welcome","WIRPageIdentifierKey":1}}]'
[debug] [RemoteDebugger] Current applications available:
[debug] [RemoteDebugger] Application: 'PID:31843'
[debug] [RemoteDebugger] id: "PID:31843"
[debug] [RemoteDebugger] isProxy: false
[debug] [RemoteDebugger] name: "Safari"
[debug] [RemoteDebugger] bundleId: "com.apple.mobilesafari"
[debug] [RemoteDebugger] hostId: undefined
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray:
[debug] [RemoteDebugger] - id: 1
[debug] [RemoteDebugger] title: "Appium/welcome"
[debug] [RemoteDebugger] url: "http://192.168.0.41:4723/welcome"
[debug] [RemoteDebugger] isKey: false
[debug] [RemoteDebugger] Application: 'PID:31846'
[debug] [RemoteDebugger] id: "PID:31846"
[debug] [RemoteDebugger] isProxy: true
[debug] [RemoteDebugger] name: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] bundleId: "process-com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] hostId: "PID:31843"
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray: 'Waiting for data'
[debug] [RemoteDebugger] Page changed: {
[debug] [RemoteDebugger] "1": {
[debug] [RemoteDebugger] "WIRTitleKey": "Appium/welcome",
[debug] [RemoteDebugger] "WIRTypeKey": "WIRTypeWeb",
[debug] [RemoteDebugger] "WIRURLKey": "http://192.168.0.41:4723/welcome",
[debug] [RemoteDebugger] "WIRPageIdentifierKey": 1
[debug] [RemoteDebugger] }
[debug] [RemoteDebugger] }
[debug] [RemoteDebugger] Received page change notice for app 'PID:31843' but listening for 'PID:31846'. Ignoring.
[debug] [RemoteDebugger] Notified that application 'PID:31843' has been updated
[debug] [RemoteDebugger] Received response from socket send: '["PID:31843",{"1":{"WIRTitleKey":"Appium/welcome","WIRTypeKey":"WIRTypeWeb","WIRURLKey":"http://192.168.0.41:4723/welcome","WIRPageIdentifierKey":1}}]'
[debug] [RemoteDebugger] Received page change notice for app 'PID:31843' but the listing has not changed. Ignoring.
[debug] [RemoteDebugger] Received altered app id, updating from 'PID:31846' to 'PID:31843'
[debug] [RemoteDebugger] Waiting for 1 pages to be fulfilled
[debug] [RemoteDebugger] Current applications available:
[debug] [RemoteDebugger] Application: 'PID:31843'
[debug] [RemoteDebugger] id: "PID:31843"
[debug] [RemoteDebugger] isProxy: false
[debug] [RemoteDebugger] name: "Safari"
[debug] [RemoteDebugger] bundleId: "com.apple.mobilesafari"
[debug] [RemoteDebugger] hostId: undefined
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray:
[debug] [RemoteDebugger] - id: 1
[debug] [RemoteDebugger] title: "Appium/welcome"
[debug] [RemoteDebugger] url: "http://192.168.0.41:4723/welcome"
[debug] [RemoteDebugger] isKey: false
[debug] [RemoteDebugger] Application: 'PID:31846'
[debug] [RemoteDebugger] id: "PID:31846"
[debug] [RemoteDebugger] isProxy: true
[debug] [RemoteDebugger] name: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] bundleId: "process-com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] hostId: "PID:31843"
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray: []
[debug] [RemoteDebugger] Page changed: {}
[debug] [RemoteDebugger] Received page change notice for app 'PID:31846' but listening for 'PID:31843'. Ignoring.
[debug] [RemoteDebugger] Notified that application 'PID:31846' has been updated
[debug] [RemoteDebugger] Current applications available:
[debug] [RemoteDebugger] Application: 'PID:31843'
[debug] [RemoteDebugger] id: "PID:31843"
[debug] [RemoteDebugger] isProxy: false
[debug] [RemoteDebugger] name: "Safari"
[debug] [RemoteDebugger] bundleId: "com.apple.mobilesafari"
[debug] [RemoteDebugger] hostId: undefined
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray:
[debug] [RemoteDebugger] - id: 1
[debug] [RemoteDebugger] title: "Appium/welcome"
[debug] [RemoteDebugger] url: "http://192.168.0.41:4723/welcome"
[debug] [RemoteDebugger] isKey: false
[debug] [RemoteDebugger] Application: 'PID:31846'
[debug] [RemoteDebugger] id: "PID:31846"
[debug] [RemoteDebugger] isProxy: true
[debug] [RemoteDebugger] name: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] bundleId: "process-com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] hostId: "PID:31843"
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray: []
[debug] [RemoteDebugger] Finally selecting app PID:31843: [{"id":1,"title":"Appium/welcome","url":"http://192.168.0.41:4723/welcome","isKey":false}]
[debug] [iOS] Picking webview 'WEBVIEW_31843.1'
[debug] [iOS] Attempting to set context to 'WEBVIEW_31843.1'
[debug] [RemoteDebugger] Selecting page '1' on app 'PID:31843' and forwarding socket setup
[debug] [RemoteDebugger] Sending '_rpc_forwardSocketSetup:' message to remote debugger (id: 3)
[debug] [RemoteDebugger] Sender key set
[debug] [RemoteDebugger] Target created: {"targetId":"page-6","type":"page"}
[debug] [RemoteDebugger] Received page change notice for app 'PID:31843' but the listing has not changed. Ignoring.
[debug] [RemoteDebugger] Notified that application 'PID:31843' has been updated
[debug] [RemoteDebugger] Notified that new application 'PID:31861' has connected
[debug] [RemoteDebugger] Current applications available:
[debug] [RemoteDebugger] Application: 'PID:31843'
[debug] [RemoteDebugger] id: "PID:31843"
[debug] [RemoteDebugger] isProxy: false
[debug] [RemoteDebugger] name: "Safari"
[debug] [RemoteDebugger] bundleId: "com.apple.mobilesafari"
[debug] [RemoteDebugger] hostId: undefined
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray:
[debug] [RemoteDebugger] - id: 1
[debug] [RemoteDebugger] title: "Appium/welcome"
[debug] [RemoteDebugger] url: "http://192.168.0.41:4723/welcome"
[debug] [RemoteDebugger] isKey: false
[debug] [RemoteDebugger] Application: 'PID:31846'
[debug] [RemoteDebugger] id: "PID:31846"
[debug] [RemoteDebugger] isProxy: true
[debug] [RemoteDebugger] name: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] bundleId: "process-com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] hostId: "PID:31843"
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray: []
[debug] [RemoteDebugger] Application: 'PID:31861'
[debug] [RemoteDebugger] id: "PID:31861"
[debug] [RemoteDebugger] isProxy: true
[debug] [RemoteDebugger] name: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] bundleId: "process-com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] hostId: "PID:31843"
[debug] [RemoteDebugger] isActive: 1
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray: []
[debug] [RemoteDebugger] Page changed: {}
[debug] [RemoteDebugger] Received page change notice for app 'PID:31861' but listening for 'PID:31843'. Ignoring.
[debug] [RemoteDebugger] Notified that application 'PID:31861' has been updated
[debug] [RemoteDebugger] Sending '_rpc_forwardSocketData:' message to remote debugger (id: 4)
[XCUITest] Error: Remote debugger error with code '-32000': Target not found.
[XCUITest] at Object.errorHandler (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/remote-debugger-rpc-client.js:254:18)
[XCUITest] at RpcMessageHandler.handleDataMessage (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/remote-debugger-message-handler.js:194:9)
[XCUITest] at RpcMessageHandler.handleMessage (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/remote-debugger-message-handler.js:77:13)
[XCUITest] at RemoteDebuggerRpcClient.handleMessage [as receive] (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/remote-debugger-rpc-client.js:402:35)
[XCUITest] at Socket.emit (events.js:209:13)
[XCUITest] at addChunk (_stream_readable.js:305:12)
[XCUITest] at readableAddChunk (_stream_readable.js:286:11)
[XCUITest] at Socket.Readable.push (_stream_readable.js:220:10)
[XCUITest] at Pipe.onStreamRead (internal/stream_base_commons.js:182:23)
[debug] [WD Proxy] Matched '/session/23f10772-5375-4c81-9536-5805132fc717' to command name 'deleteSession'
[debug] [WD Proxy] Proxying [DELETE /session/23f10772-5375-4c81-9536-5805132fc717] to [DELETE http://localhost:8100/session/18604E24-D247-4A43-A4A8-5B8F7FCB9D54] with no body
[debug] [RemoteDebugger] Application 'PID:31843' disconnected. Removing from app dictionary.
[debug] [RemoteDebugger] Current app is PID:31843
[debug] [RemoteDebugger] No longer have app id. Attempting to find new one.
[debug] [RemoteDebugger] Application 'PID:31846' disconnected. Removing from app dictionary.
[debug] [RemoteDebugger] Current app is undefined
[debug] [RemoteDebugger] Application 'PID:31861' disconnected. Removing from app dictionary.
[debug] [RemoteDebugger] Current app is undefined
[debug] [WD Proxy] Got response with status 200: "{\n \"value\" : {\n\n },\n \"sessionId\" : \"33A93B5F-A13E-4C1B-B2DE-D243AEC0A4C4\",\n \"status\" : 0\n}"
[debug] [XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[debug] [XCUITest] Deleting simulator created for this run (udid: '42D158FC-3300-43BF-81A3-5B18B783FEDD')
[debug] [XCUITest] Killing running processes 'xcodebuild.*42D158FC-3300-43BF-81A3-5B18B783FEDD, 42D158FC-3300-43BF-81A3-5B18B783FEDD.*XCTRunner' for the device 42D158FC-3300-43BF-81A3-5B18B783FEDD...
[XCUITest] xcodebuild exited with code 'null' and signal 'SIGTERM'
[debug] [XCUITest] 'pgrep -ifn xcodebuild.*42D158FC-3300-43BF-81A3-5B18B783FEDD' didn't detect any matching processes. Return code: 1
[debug] [XCUITest] 'pgrep -ifn 42D158FC-3300-43BF-81A3-5B18B783FEDD.*XCTRunner' didn't detect any matching processes. Return code: 1
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1568747136388 (14:05:36 GMT-0500 (Central Daylight Time))
[debug] [W3C] Encountered internal error running command: Error: Remote debugger error with code '-32000': Target not found.
[debug] [W3C] at Object.errorHandler (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/remote-debugger-rpc-client.js:254:18)
[debug] [W3C] at RpcMessageHandler.handleDataMessage (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/remote-debugger-message-handler.js:194:9)
[debug] [W3C] at RpcMessageHandler.handleMessage (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/remote-debugger-message-handler.js:77:13)
[debug] [W3C] at RemoteDebuggerRpcClient.handleMessage [as receive] (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/remote-debugger-rpc-client.js:402:35)
[debug] [W3C] at Socket.emit (events.js:209:13)
[debug] [W3C] at addChunk (_stream_readable.js:305:12)
[debug] [W3C] at readableAddChunk (_stream_readable.js:286:11)
[debug] [W3C] at Socket.Readable.push (_stream_readable.js:220:10)
[debug] [W3C] at Pipe.onStreamRead (internal/stream_base_commons.js:182:23)
[HTTP] <-- POST /wd/hub/session 500 106926 ms - 615
[HTTP]
Encountered internal error running command: Error: Remote debugger error with code '-32000': Target not found.
That means that you did not provide app to start, your driver initialized successfully ( [debug] [XCUITest] WebDriverAgent successfully started after 15687ms ) but since there is no application to start, nothing happens. Add app capability to start application.

Appium takes more than 5 min to get response while automating iOS app

I Have observed that when I first time run my script that will run very fast without any delay response. However, immediately, if I run the same script without any changes or closing simulator or any kind of reset, following POST request takes more than 5 min to get a response.
Request from Appium:
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"XXX.XXXX.ios","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
Response:
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"91784C9C-3B63-40D3-9335-9C80548E7E68","capabilities":{"device":"iphone","browserName":null,"sdkVersion":"11.4","CFBundleIdentifier":null}},"sessionId":"91784C9C-3B63-40D3-9335-9C80548E7E68","status":0}
Following are my configured version
Xcode Version: Xcode 9.4.1, Build version 9F2000
Appium: v1.8.1 also
tried with v1.9.1
node: 5.6.0
Javac: javac 1.8.0_171
Device: Simulator (iPhone 7)
Appium Java-client: 6.1.0
Full Appium log:
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"app":"/Users/user.name/Desktop/XXXXX.app","noReset":false,"unhandledPromptBehavior":true,"deviceName":"iPhone 7","version":"","platform":"MAC","newCommandTimeout":1500,"platformVersion":"11.4","automationName":"XCUITest","browserName":"iPhone","platformName":"IOS","udid":"7B7A3A94-372F-4872-8BD0-F7BC50CA2924","autoAcceptAlerts":true,"unexpectedAlertBehaviour":true},"capabilities":{"alwaysMatch":{"appium:app":"/Users/user.name/Desktop/XXXXX.app","appium:autoAcceptAlerts":true,"appium:automationName":"XCUITest","browserName":"iPhone","appium:deviceName":"iPhone 7","appium:newCommandTimeout":1500,"appium:noReset":false,"platform":"MAC","platformName":"ios","appium:platformVersion":"11.4","appium:udid":"7B7A3A94-372F-4872-8BD0-F7BC50CA2924","unexpectedAlertBehaviour":true,"unhandledPromptBehavior":true,"version":""},"firstMatch":[{}]}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"app":"/Users/user.name/Desktop/XXXXX.app","noReset":false,"unhandledPromptBehavior":true,"deviceName":"iPhone 7","version":"","platform":"MAC","newCommandTimeout":1500,"platformVersion":"11.4","automationName":"XCUITest","browserName":"iPhone","platformName":"IOS","udid":"7B7A3A94-372F-4872-8BD0-F7BC50CA2924","autoAcceptAlerts":true,"unexpectedAlertBehaviour":true},null,{"alwaysMatch":{"appium:app":"/Users/user.name/Desktop/XXXXX.app","appium:autoAcceptAlerts":true,"appium:automationName":"XCUITest","browserName":"iPhone","appium:deviceName":"iPhone 7","appium:newCommandTimeout":1500,"appium:noReset":false,"platform":"MAC","platformName":"ios","appium:platformVersion":"11.4","appium:udid":"7B7A3A94-372F-4872-8BD0-F7BC50CA2924","unexpectedAlertBehaviour":true,"unhandledPromptBehavior":true,"version":""},"firstMatch":[{}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1539403642546 (09:37:22 GMT+0530 (IST))
[BaseDriver] The capabilities ["platform","unexpectedAlertBehaviour","version"] are not standard capabilities and should have an extension prefix
[Appium] Creating new XCUITestDriver (v2.84.0) session
[Appium] Capabilities:
[Appium] browserName: iPhone
[Appium] platform: MAC
[Appium] platformName: ios
[Appium] unexpectedAlertBehaviour: true
[Appium] unhandledPromptBehavior: true
[Appium] version:
[Appium] app: /Users/user.name/Desktop/XXXXX.app
[Appium] autoAcceptAlerts: true
[Appium] automationName: XCUITest
[Appium] deviceName: iPhone 7
[Appium] newCommandTimeout: 1500
[Appium] noReset: false
[Appium] platformVersion: 11.4
[Appium] udid: 7B7A3A94-372F-4872-8BD0-F7BC50CA2924
[debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"browserNam... and MJSONWP desired capabilities [object Object] were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"browserNam...
[BaseDriver] The following capabilities were provided, but are not recognized by appium: unhandledPromptBehavior, platform, unexpectedAlertBehaviour, version.
[XCUITest] The capabilities 'autoAcceptAlerts' and 'autoDismissAlerts' do not work for XCUITest-based tests. Please adjust your alert handling accordingly.
[BaseDriver] Session created with session id: 7b782b91-6f85-433d-b713-070a891c95f9
[debug] [XCUITest] Current user: 'user.name'
[debug] [XCUITest] Xcode version set to '9.4.1' (tools v9.4.0.0.1.1526532315)
[debug] [XCUITest] iOS SDK Version set to '11.4'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1539403642636 (09:37:22 GMT+0530 (IST))
[iOSSim] Constructing iOS simulator for Xcode version 9.4.1 with udid '7B7A3A94-372F-4872-8BD0-F7BC50CA2924'
[XCUITest] Determining device to run tests on: udid: '7B7A3A94-372F-4872-8BD0-F7BC50CA2924', real device: false
[BaseDriver] Using local app '/Users/user.name/Desktop/XXXXX.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1539403642857 (09:37:22 GMT+0530 (IST))
[debug] [XCUITest] Checking whether app '/Users/user.name/Desktop/XXXXX.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [iOS] Getting bundle ID from app '/Users/user.name/Desktop/XXXXX.app': 'XXX.XXXX.ios'
[debug] [BaseDriver] Event 'resetStarted' logged at 1539403642858 (09:37:22 GMT+0530 (IST))
[XCUITest] Not scrubbing third party app in anticipation of uninstall
[debug] [BaseDriver] Event 'resetComplete' logged at 1539403643079 (09:37:23 GMT+0530 (IST))
[debug] [XCUITest] Starting log capture for iOS Simulator with udid '7B7A3A94-372F-4872-8BD0-F7BC50CA2924', using 'xcrun simctl spawn 7B7A3A94-372F-4872-8BD0-F7BC50CA2924 log stream --style compact'
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1539403643385 (09:37:23 GMT+0530 (IST))
[XCUITest] Setting up simulator
[debug] [iOS] No reason to set locale
[debug] [iOS] No iOS / app preferences to set
[debug] [iOSSim] Matched 1 Simulator cache item for cleanup: /Users/user.name/Library/Developer/CoreSimulator/Devices/7B7A3A94-372F-4872-8BD0-F7BC50CA2924/data/Library/Caches/com.apple.mobile.installd.staging
[debug] [iOSSim] Setting preferences of 7B7A3A94-372F-4872-8BD0-F7BC50CA2924 Simulator to {"ConnectHardwareKeyboard":false}
[debug] [iOSSim] Setting common Simulator preferences to {"ConnectHardwareKeyboard":false}
[debug] [iOSSim] Updated 7B7A3A94-372F-4872-8BD0-F7BC50CA2924 Simulator preferences at '/Users/user.name/Library/Preferences/com.apple.iphonesimulator.plist' with {"DevicePreferences":{"7B7A3A94-372F-4872-8BD0-F7BC50CA2924":{"ConnectHardwareKeyboard":false}},"ConnectHardwareKeyboard":false}
[debug] [iOSSim] The count of running Simulator UI client instances is 1
[iOSSim] Both Simulator with UDID 7B7A3A94-372F-4872-8BD0-F7BC50CA2924 and the UI client are currently running
[debug] [BaseDriver] Event 'simStarted' logged at 1539403643658 (09:37:23 GMT+0530 (IST))
[debug] [XCUITest] Verifying application platform
[debug] [XCUITest] CFBundleSupportedPlatforms: ["iPhoneSimulator"]
[debug] [XCUITest] Reset requested. Removing app with id 'XXX.XXXX.ios' from the device
[debug] [XCUITest] Installing '/Users/user.name/Desktop/XXXXX.app' on Simulator with UUID '7B7A3A94-372F-4872-8BD0-F7BC50CA2924'...
[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event 'appInstalled' logged at 1539403647212 (09:37:27 GMT+0530 (IST))
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[debug] [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.4\",\n \"sdkVersion\" : \"11.3\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.4\",\n \"ip\" : \"192.168.2.4\"\n },\n \"build\" : {\n \"upgradedAt\" : \"1539327134564\",\n \"time\" : \"Oct 12 2018 12:22:23\",\n \"productBundleIdentifier\" : \"com.facebook.WebDriverAgentRunner\"\n }\n },\n \"sessionId\" : \"163984B3-334E-4054-AB68-99D93F26F976\",\n \"status\" : 0\n}"
[XCUITest] Will reuse previously cached WDA instance at 'http://localhost:8100/'. Set the wdaLocalPort capability to a value different from 8100 if this is an undesired behavior.
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1539403647303 (09:37:27 GMT+0530 (IST))
[XCUITest] Using provided WebdriverAgent at 'http://localhost:8100/'
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1539403647304 (09:37:27 GMT+0530 (IST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.4\",\n \"sdkVersion\" : \"11.3\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.4\",\n \"ip\" : \"192.168.2.4\"\n },\n \"build\" : {\n \"upgradedAt\" : \"1539327134564\",\n \"time\" : \"Oct 12 2018 12:22:23\",\n \"productBundleIdentifier\" : \"com.facebook.WebDriverAgentRunner\"\n }\n },\n \"sessionId\" : \"163984B3-334E-4054-AB68-99D93F26F976\",\n \"status\" : 0\n}"
**[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"XXX.XXXX.ios","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}**
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"91784C9C-3B63-40D3-9335-9C80548E7E68","capabilities":{"device":"iphone","browserName":null,"sdkVersion":"11.4","CFBundleIdentifier":null}},"sessionId":"91784C9C-3B63-40D3-9335-9C80548E7E68","status":0}
[debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1539403968659 (09:42:48 GMT+0530 (IST))
[debug] [BaseDriver] Event 'wdaStarted' logged at 1539403968659 (09:42:48 GMT+0530 (IST))
[XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior.
[debug] [BaseDriver] Event 'orientationSet' logged at 1539403968660 (09:42:48 GMT+0530 (IST))
[Appium] New XCUITestDriver session created successfully, session 7b782b91-6f85-433d-b713-070a891c95f9 added to master session list
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1539403968660 (09:42:48 GMT+0530 (IST))
[debug] [W3C] Responding to client with driver.createSession() result: {"capabilities":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"iPhone","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"platformName":"ios","unhandledPromptBehavior":true,"unexpectedAlertBehaviour":true,"version":"","app":"/Users/user.name/Desktop/XXXXX.app","autoAcceptAlerts":true,"automationName":"XCUITest","deviceName":"iPhone 7","newCommandTimeout":1500,"noReset":false,"platformVersion":"11.4","udid":"7B7A3A94-372F-4872-8BD0-F7BC50CA2924"}}
Try to run your tests with capability noReset: true and don't close/start driver before each test: you can use driver.launchApp() simply to restart it.

Error in loading Appium XCUITEST driver

I am really stuck, any help will be appreciated...
I have installed the latest server version (1.6.0).
When I am checking the server version it is OK...
Asis-Mac-mini:/ asihizkiahu$ appium -v
1.6.0
Observe at the server version in the log attached, it indicates Appium v1.6.0-beta1 (wrong version)
Does this causes the error?
I get error...
[MJSONWP] Encountered internal error running command: Error: Could not navigate to webview; there are none!
Log with the wrong server:
[node, /Users/asihizkiahu/node_modules/appium/build/lib/main.js, --address, 127.0.0.1, --port, 4723]
Appium server started.
(node:13191) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[Appium] Welcome to Appium v1.6.0-beta1
[Appium] Non-default server args:
[Appium] address: '127.0.0.1'
[Appium] Appium REST http interface listener started on 127.0.0.1:4723
Trying to set IOS driver
Property file src/test/resources/messaging_sanity_test/capabilities.properties parsed successfully
[MJSONWP] Encountered internal error running command: Error: Could not navigate to webview; there are none!
Here is part of the log that contain the error:
[debug] [RemoteDebugger] Receiving data from remote debugger: '{"argument":{"WIRApplicationDictionaryKey":{}},"selector":"rpcreportConnectedApplicationList:"}'
[debug] [RemoteDebugger] Received no apps from remote debugger. Unable to connect.
[debug] [RemoteDebugger] Receiving data from remote debugger: '{"argument":{"WIRDriverDictionaryKey":{}},"selector":"rpcreportConnectedDriverList:"}'
[debug] [RemoteDebugger] Notified of connected drivers: {}.
[debug] [RemoteDebugger] Connected to application
[debug] [RemoteDebugger] Sim name: iPhone
[debug] [RemoteDebugger] Sim build: 14A345
[debug] [RemoteDebugger] Sim platform version: 10.0
[debug] [RemoteDebugger] Selecting application
[debug] [RemoteDebugger] No applications currently connected.
[debug] [iOS] No web frames found.
[iOS] Could not find any webviews yet, refreshing/retrying
[debug] [iOS] Retrieving contexts and views
[debug] [iOS] Selecting by url: false
[debug] [RemoteDebugger] useNewSafari --> false
[debug] [RemoteDebugger] Debugger socket connected to ::1:27753
[debug] [RemoteDebugger] Sending connection key request
[debug] [RemoteDebugger] Sending 'rpcreportIdentifier:' message to remote debugger
[debug] [RemoteDebugger] Receiving data from remote debugger: '{"argument":{"WIRSimulatorBuildKey":"14A345","WIRSimulatorProductVersionKey":"10.0","WIRSimulatorNameKey":"iPhone"},"selector":"rpcreportSetup:"}'
[debug] [RemoteDebugger] Received response from socket send: '["iPhone","14A345","10.0"]'
[debug] [RemoteDebugger] Receiving data from remote debugger: '{"argument":{"WIRApplicationDictionaryKey":{}},"selector":"rpcreportConnectedApplicationList:"}'
[debug] [RemoteDebugger] Received no apps from remote debugger. Unable to connect.
[debug] [RemoteDebugger] Connected to application
[debug] [RemoteDebugger] Sim name: iPhone
[debug] [RemoteDebugger] Sim build: 14A345
[debug] [RemoteDebugger] Sim platform version: 10.0
[debug] [RemoteDebugger] Selecting application
[debug] [RemoteDebugger] No applications currently connected.
[debug] [iOS] No web frames found.
[XCUITest] Error: Could not navigate to webview; there are none!
at XCUITestDriver.spinHandles$ (lib/commands/context.js:506:13)
at tryCatch (/Users/asihizkiahu/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/Users/asihizkiahu/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Error: Could not navigate to webview; there are none!
at XCUITestDriver.spinHandles$ (lib/commands/context.js:506:13)
at tryCatch (/Users/asihizkiahu/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/Users/asihizkiahu/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[JSONWP Proxy] Proxying [DELETE /session/34948802-75b5-4ee5-922f-20b4b658fa18] to [DELETE http://localhost:8100/session/E545A2AC-EB6F-4BD1-A419-DB6CF7B04987] with no body
[debug] [RemoteDebugger] Receiving data from remote debugger: '{"argument":{"WIRDriverDictionaryKey":{}},"selector":"rpcreportConnectedDriverList:"}'
[debug] [RemoteDebugger] Notified of connected drivers: {}.
[JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n\n },...
[XCUITest] Shutting down WebDriverAgent
[XCUITest] Simulator log exited with code 'null'
[XCUITest] xcodebuild exited with code 'null' and signal 'SIGTERM'
[debug] [XCUITest] Running iOS simulator reset flow
[debug] [XCUITest] Shutting down simulator
[debug] [iOSSim] Killing all iOS Simulators
[debug] [XCUITest] Full reset is on. Cleaning simulator
[debug] [iOSSim] Killing any simulator daemons for 5A494E7A-EE78-4095-8922-CF1C3CC89FAB
[iOSSim] Cleaning simulator 5A494E7A-EE78-4095-8922-CF1C3CC89FAB
[debug] [XCUITest] Resetting simulator
[debug] [XCUITest] Shutting down simulator
[debug] [iOSSim] Killing all iOS Simulators
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: Could not navigate to webview; there are none!
at XCUITestDriver.spinHandles$ (lib/commands/context.js:506:13)
at tryCatch (/Users/asihizkiahu/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/Users/asihizkiahu/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[HTTP] <-- POST /wd/hub/session 500 305866 ms - 183
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not navigate to webview; there are none! (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 306.28 seconds
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: 'Asis-Mac-mini.local', ip: '192.168.1.194', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.7.0_79'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:158)
at com.ui.service.drivers.Drivers$Appium.createIOSDriver(Drivers.java:474)
at com.ui.service.drivers.Drivers$Appium.setDriver(Drivers.java:420)
at com.ui.service.drivers.Drivers.setDriver(Drivers.java:59)
at com.test.BaseTest$StaticRouter.before(BaseTest.java:80)
at appium.messaging.MessagingSanityTest.setUp(MessagingSanityTest.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
My goal is to load the Appium server (version 1.6.0) via code, and to load the XCUITEST driver as well.
My code is...
Appium server load:
public static void startServer() {
CommandLine command = new CommandLine(
"node");
command.addArgument(
"/Users/asihizkiahu/node_modules/appium/build/lib/main.js",
false);
command.addArgument("--address", false);
command.addArgument("127.0.0.1");
command.addArgument("--port", false);
command.addArgument("4723");
// command.addArgument("---no-reset", true);
DefaultExecuteResultHandler resultHandler = new DefaultExecuteResultHandler();
DefaultExecutor executor = new DefaultExecutor();
executor.setExitValue(1);
try {
ColorLog.println(ColorLog.Level.DEBUG, command.toString());
executor.execute(command, resultHandler);
Thread.sleep(10000);
System.out.println("Appium server started.");
} catch (IOException e) {
e.printStackTrace();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
driver load:
public class AppiumIOS {
private final static Logger logger = Logger.getLogger(AppiumIOS.class);
static WebDriver driver;
public static void main(String[] args) throws MalformedURLException, InterruptedException {
String hubUrl = "http://127.0.0.1:4723/wd/hub";
String iOSDeviceName = "iPhone Simulator";
String iOSVersion = "10.0";
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName", iOSDeviceName);
capabilities.setCapability("platformName", "iOS");
capabilities.setCapability("platformVersion", iOSVersion);
capabilities.setCapability("app", /Users/asihizkiahu/Library/Developer/Xcode/DerivedData/Vi-chglmmqrkfgvuoflipawibkmabgs/Build/Products/Debug-iphonesimulator/Vi-Dev.app);
capabilities.setCapability("automationName", "XCUITest");
driver = new RemoteWebDriver(new URL(hubUrl), capabilities);
}

iOS Hybrid App -Appium click() is not working

I just setup Appium 1.3.6 to test my hybrid cordova iOS app on iPhone Simulator. Able to find button element and its Text, width,Height.But click() is not working.But I am getting 200 success response for click. Please check the appium logs below.
Welcome to Appium v1.3.6 (REV 004f52f249d3513809e7d0734d9205d1fec19f8e)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: Console LogLevel: debug
info: --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"}}
info: Client User-Agent string: Apache-HttpClient/4.3.6 (java 1.5)
info: [debug] Using local app from desired caps: /Users/rajesh.madaswamy/Fly dotREZ.app
info: [debug] Creating new appium session e385db7f-319a-4c0c-888b-1cc14c415879
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder
info: [debug] Setting Xcode version
info: [debug] Setting iOS SDK Version
info: [debug] Getting sdk version from xcrun with a timeout
info: [debug] iOS SDK Version set to 7.0
info: [debug] Instruments v < 7.1, not checking device string support
info: [debug] Detecting automation tracetemplate
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Parsed app Localizable.strings
info: [debug] Getting bundle ID from app
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {"nodePath":"/usr/local/bin/node","commandProxyClientPath":"/Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"oneByOne"}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. D...ot manually modify!
info: [debug] Dynamic bootstrap path: /Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap/bootstrap-13f238e80ecb92ad.js
info: [debug] Reusing dynamic bootstrap: /Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap/bootstrap-13f238e80ecb92ad.js
info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"5.0.2","iOSSDKVersion":"7.0","deviceName":"iPhone Simulator","platformVersion":"7.0"}
info: [debug] fixDevice is on
info: [debug] Final device string is: 'iPhone'
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Wrote new app Info.plist with device type
info: [debug] Checking whether we need to set app preferences
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iPhoneSimulator
info: [debug] Killing any other simulator daemons
info: [debug] Cleaning sim data files
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/TCC
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/Caches/locationd
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/BackBoard/applicationState.plist
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Media
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/Keychains
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/TCC
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/Caches/locationd
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/BackBoard/applicationState.plist
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Media
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/Keychains
info: [debug] Cleaning sim preferences
info: [debug] Cleaning app data files
info: Couldn't find app directories to delete. Probably it's not installed
info: [debug] Not setting locale
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS 7.* simulator log capture
info: [debug] Pre-launching simulator
info: [debug] Killing the simulator process
info: [debug] Killall iPhoneSimulator
info: [debug] Killing any other simulator daemons
info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"5.0.2","iOSSDKVersion":"7.0","deviceName":"iPhone Simulator","platformVersion":"7.0"}
info: [debug] fixDevice is on
info: [debug] Final device string is: 'iPhone'
info: [debug] Launching device: iPhone
info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"5.0.2","iOSSDKVersion":"7.0","deviceName":"iPhone Simulator","platformVersion":"7.0"}
info: [debug] fixDevice is on
info: [debug] Final device string is: 'iPhone'
info: [debug] Simulator is now ready.
info: [debug] No device id or app, not installing to real device.
info: [debug] Starting command proxy.
info: [debug] Instruments socket server started at /tmp/instruments_sock
info: [debug] Starting instruments
info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
info: Launching instruments
info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace "/Users/rajesh.madaswamy/Fly dotREZ.app" -e UIASCRIPT "/Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap/bootstrap-13f238e80ecb92ad.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {"DYLD_INSERT_LIBRARIES":"/Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd5/InstrumentsShim.dylib","LIB_PATH":"/Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd5"}
info: [debug] And launch timeouts (in ms): {"global":90000}
info: [debug] [INST STDERR] 2015-03-13 17:57:19.701 ScriptAgent[30296:2d07] CLTilesManagerClient: initialize, sSharedTilesManagerClient
info: [debug] [INST STDERR] 2015-03-13 17:57:19.702 ScriptAgent[30296:2d07] CLTilesManagerClient: init
2015-03-13 17:57:19.703 ScriptAgent[30296:2d07] CLTilesManagerClient: reconnecting, 0x9472910
info: Instruments is ready to receive commands
info: [debug] Instruments launched. Starting poll loop for new commands.
info: [debug] Setting bootstrap config keys/values
info: [debug] Pushing command to appium work queue: "target = $.target();\nau = $;\n$.isVerbose = true;\n"
info: [debug] Socket data received (2 bytes)
info: [debug] Socket data being routed.
info: [debug] Sending command to instruments: target = $.target();
au = $;
$.isVerbose = true;
info: [debug] Socket data received (27 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":true}
info: [debug] Setting initial orientation to PORTRAIT
info: [debug] Pushing command to appium work queue: "au.setScreenOrientation('PORTRAIT')"
info: [debug] Sending command to instruments: au.setScreenOrientation('PORTRAIT')
info: [debug] Socket data received (33 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":"PORTRAIT"}
info: [debug] Waiting for app source to contain elements
info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"
info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()
info: [debug] Socket data received (3339 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":{"UIAApplication":{"#":{"name":"Fly dotREZ","label":"Fly dotREZ","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0","x":0,"y":20,"width":320,"height":548},">":[{"UIAWindow":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":tr
info: [debug] Device launched! Ready for commands
info: [debug] Setting command timeout to the default of 60 secs
info: [debug] Appium session started with sessionId e385db7f-319a-4c0c-888b-1cc14c415879
info: <-- POST /wd/hub/session 303 8761.761 ms - 9
info: --> GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879 {}
info: [debug] Responding to client with success: {"status":0,"value":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"iOS","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"warnings":{},"desired":{"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"},"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: <-- GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879 200 4.339 ms - 586 {"status":0,"value":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"iOS","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"warnings":{},"desired":{"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"},"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: --> GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/contexts {}
info: [debug] [REMOTE] Debugger socket connected to ::1:27753
info: [debug] [REMOTE] Sending connection key
info: [debug] [REMOTE] Sending _rpc_reportIdentifier: message to remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"40415480-7ff5-4c0f-a545-741769052f13"},"__selector":"_rpc_reportIdentifier:"}
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] {"__selector":"_rpc_reportSetup:","__argument":{"WIRSimulatorNameKey":"iPhone Simulator","WIRSimulatorProductVersionKey":"7.0.3","WIRSimulatorBuildKey":"11B508"}}
info: [debug] [REMOTE] Sim name: iPhone Simulator
info: [debug] [REMOTE] Sim build: 11B508
info: [debug] [REMOTE] {"__selector":"_rpc_reportConnectedApplicationList:","__argument":{"WIRApplicationDictionaryKey":{"com.accenture.londonVoyage-Extension":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRApplicationNameKey":"Fly dotREZ","WIRIsApplicationProxyKey":false}}}}
info: [debug] Using remote debugger app key: com.accenture.londonVoyage-Extension
info: [debug] [REMOTE] Selecting app com.accenture.londonVoyage-Extension (try #1)
info: [debug] [REMOTE] function () { [native code] }
info: [debug] [REMOTE] Sending _rpc_forwardGetListing: message to remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"40415480-7ff5-4c0f-a545-741769052f13","WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension"},"__selector":"_rpc_forwardGetListing:"}
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRListingKey":{"1":{"WIRPageIdentifierKey":1,"WIRTitleKey":"NavAir","WIRURLKey":"file:///Users/rajesh.madaswamy/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/D0CB53D1-EB39-40F2-B8D4-C010C8EE691F/Fly%20dotREZ.app/www/index.html"}}}}
info: [debug] Responding to client with success: {"status":0,"value":["NATIVE_APP","WEBVIEW_1"],"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: <-- GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/contexts 200 14.960 ms - 98 {"status":0,"value":["NATIVE_APP","WEBVIEW_1"],"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: --> POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/context {"name":"WEBVIEW_1"}
info: [debug] Attempting to set context to 'WEBVIEW_1'
info: [debug] [REMOTE] Selecting page 1 and forwarding socket setup
info: [debug] [REMOTE] Sending _rpc_forwardSocketSetup: message to remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRConnectionIdentifierKey":"40415480-7ff5-4c0f-a545-741769052f13","WIRSenderKey":"7f6f5954-242e-42aa-a96b-5686585201f0","WIRPageIdentifierKey":1},"__selector":"_rpc_forwardSocketSetup:"}
info: [debug] [REMOTE] Set sender key
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] [REMOTE] Enabled activity on page
info: [debug] [REMOTE] Checking document readyState
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] [REMOTE] readyState was complete
info: [debug] Responding to client with success: {"status":0,"value":"","sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: <-- POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/context 200 23.866 ms - 74 {"status":0,"value":"","sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: --> POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element {"using":"class name","value":"x-button-normal"}
info: [debug] Waiting up to 0ms for condition
info: [debug] [REMOTE] Executing 'find_element' atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"5000"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: <-- POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element 200 13.041 ms - 90 {"status":0,"value":{"ELEMENT":"5000"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: --> GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element/5000/displayed {}
info: [debug] [REMOTE] Executing 'is_displayed' atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: <-- GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element/5000/displayed 200 17.283 ms - 76 {"status":0,"value":true,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRListingKey":{"1":{"WIRConnectionIdentifierKey":"40415480-7ff5-4c0f-a545-741769052f13","WIRURLKey":"file:///Users/rajesh.madaswamy/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/D0CB53D1-EB39-40F2-B8D4-C010C8EE691F/Fly%20dotREZ.app/www/index.html","WIRTitleKey":"NavAir","WIRPageIdentifierKey":1}}}}
info: [debug] Remote debugger notified us of a new page listing
info: [debug] New page listing is same as old, doing nothing
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] [REMOTE] Got a blank data response from debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] [REMOTE] Got a blank data response from debugger
info: [debug] [INST STDERR] 2015-03-13 17:57:25.264 ScriptAgent[30296:2d07] -[ScriptAgent handleAlert:]: script status is 2
info: [debug] [INST STDERR] 2015-03-13 17:57:25.264 ScriptAgent[30296:2d07] -[ScriptAgent handleAlert:]: Calling onAlert
info: [debug] [INST STDERR] 2015-03-13 17:57:25.266 ScriptAgent[30296:2d07] -[ScriptAgent handleAlert:]: Call to onAlert returned 'YES'
info: [debug] Emiting alert message...
info: --> POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element {"using":"class name","value":"x-button-normal"}
info: [debug] Waiting up to 0ms for condition
info: [debug] [REMOTE] Executing 'find_element' atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"5001"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: <-- POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element 200 8.367 ms - 90 {"status":0,"value":{"ELEMENT":"5001"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: --> POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element/5001/click {"id":"5001"}
info: [debug] [REMOTE] Executing 'click' atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: <-- POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element/5001/click 200 24.389 ms - 76 {"status":0,"value":null,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: --> DELETE /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879 {}
info: Shutting down appium session
info: [debug] Stopping ios
info: [debug] Destroying instruments client socket.
info: [debug] Closing socket server.
info: [debug] Instruments socket server was closed
info: [debug] Sending sigterm to instruments
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] {"__selector":"_rpc_applicationDisconnected:","__argument":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRApplicationNameKey":"Fly dotREZ","WIRIsApplicationProxyKey":false}}
info: [debug] [INST] 2015-03-13 12:27:20 +0000 Debug: evaluation finished
2015-03-13 12:27:20 +0000 Debug: responding with:
2015-03-13 12:27:20 +0000 Debug: Running system command #1: /usr/local/bin/node /Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":true}...
2015-03-13 12:27:20 +0000 Debug: Got new command 1 from instruments: au.setScreenOrientation('PORTRAIT')
2015-03-13 12:27:20 +0000 Debug: evaluating au.setScreenOrientation('PORTRAIT')
2015-03-13 12:27:20 +0000 Debug: target.setDeviceOrientation("1")
2015-03-13 12:27:20 +0000 Debug: evaluation finished
2015-03-13 12:27:20 +0000 Debug: responding with:
2015-03-13 12:27:20 +0000 Debug: Running system command #2: /usr/local/bin/node /Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":"PORTRAIT"}...
2015-03-13 12:27:20 +0000 Debug: Got new command 2 from instruments: au.mainApp().getTreeForXML()
2015-03-13 12:27:20 +0000 Debug: evaluating au.mainApp().getTreeForXML()
2015-03-13 12:27:20 +0000 Debug: evaluation finished
2015-03-13 12:27:20 +0000 Debug: responding with:ue,"valid":true,"visible":true,"hint":null,"path":"/0/0","x":0,"y":0,"width":320,"height":568},">":[{"UIAImage":{"#":{"name":"Default-568h","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/0","x":0,"y":0,"width":320,"height":568},">":[]}},{"UIAScrollView":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/1","x":0,"y":20,"width":320,"height":548},">":[{"UIAWebView":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/1/0","x":0,"y":20,"width":320,"height":548},">":[]}}]}},{"UIAImage":{"#":{"name":"loading_ani.png","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/2","x":125.5,"y":249,"width":69,"height":70},">":[]}},{"UIAImage":{"#":{"name":"loading_ani_plane.png","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/3","x":138.5,"y":275.5,"width":43,"height":17},">":[]}}]}},{"UIAWindow":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1","x":0,"y":0,"width":320,"height":568},">":[{"UIAStatusBar":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0","x":0,"y":0,"width":320,"height":20},">":[{"UIAElement":{"#":{"name":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/1/0/0","x":6,"y":0,"width":38,"height":20},">":[]}},{"UIAElement":{"#":{"name":"3 of 3 Wi-Fi bars","label":"3 of 3 Wi-Fi bars","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/1/0/1","x":49,"y":0,"width":13,"height":20},">":[]}},{"UIAElement":{"#":{"name":"5:57 PM","label":"5:57 PM","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/1/0/2","x":137,"y":0,"width":47,"height":20},">":[]}},{"UIAElement":{"#":{"name":"100% battery power","label":"100% battery power","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/1/0/3","x":290,"y":0,"width":25,"height":20},">":[]}}]}}]}}]}}}
2015-03-13 12:27:20 +0000 Debug: Running system command #3: /usr/local/bin/node /Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":{"UIAApplication":{"#":{"name":"Fly dotREZ","label":"Fly dotREZ","value":null,"dom":null,"enabled":true,"valid":true,"v...
2015-03-13 12:27:30 +0000 Stopped: Script was stopped by the user
Instruments Trace Complete (Duration : 15.250390s; Output : /tmp/appium-instruments/instrumentscli0.trace)
info: [debug] [INSTSERVER] Instruments exited with code 0
info: [debug] Cleaning up after instruments exit
info: [debug] Stopping iOS log capture
info: [debug] [REMOTE] Disconnecting from remote debugger
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killing any other simulator daemons
info: [debug] [REMOTE] Debugger socket disconnected
info: [debug] Cleaning sim data files
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/TCC
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/Caches/locationd
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/BackBoard/applicationState.plist
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Media
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/Keychains
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/TCC
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/Caches/locationd
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/BackBoard/applicationState.plist
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Media
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/Keychains
info: [debug] Cleaning sim preferences
info: [debug] Clearing key: SimulateDevice
info: [debug] Writing new preferences plist data
info: [debug] Cleaning app data files
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Applications/D0CB53D1-EB39-40F2-B8D4-C010C8EE691F
info: [debug] Cleaning up appium session
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: <-- DELETE /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879 200 317.723 ms - 76 {"status":0,"value":null,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
Try next method:
Let driver be Selenium::WebDriver instance, and el your element:
On Ruby:
driver.action.move_to(el, 0, 30).click.perform

Resources