When I am running the following code using Appium 1.4 and Xcode 6.2 (iOS 8.2), it just opens the safari and immediately throws the error.
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, MobileBrowserType.SAFARI);
capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "8.2");
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone 6");
capabilities.setCapability(MobileCapabilityType.LAUNCH_TIMEOUT, "300000"); //ms
capabilities.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, "300"); //sec
capabilities.setCapability("safariIgnoreFraudWarning", true);
capabilities.setCapability("safariAllowPopups", true);
capabilities.setCapability("fullReset", false); // for iOS only
capabilities.setCapability("autoAcceptAlerts", true);
WebDriver iosd=new IOSDriver(new URL("http://192.168.1.5:4723/wd/hub"), capabilities);
The error is:
error: uncaughtException: Cannot read property ‘ELEMENT’ of undefined date=Fri Jun 19 2015 13:46:44 GMT+0530 (IST), pid=27661, uid=1038989321, gid=1138207179,
Complete log is:
Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --command-timeout “7200” --pre-launch --debug-log-spacing --platform-version “8.2” --platform-name “iOS” --safari --browser-name “Safari” --device-name “iPhone 6” --launch-timeout “300000”
info: [debug] Starting Appium in pre-launch mode
info: Pre-launching app
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: [debug] Configuring Safari session
info: [debug] We’re on iOS8+ so not copying mobile safari app
info: [debug] Creating new appium session 8c7e3578-6524-475d-9c66-2b0e022de71e
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode version
warn: Support for Xcode 6.2 has been deprecated and will be removed in a future version. Please upgrade to version 6.3 or higher (or version 6.0.1 for iOS 8.0)
info: [debug] Xcode version set to 6.2
info: [debug] Setting iOS SDK Version
info: [debug] iOS SDK Version set to 8.2
info: [debug] Checking whether instruments supports our device string
info: [debug] Getting list of devices instruments supports
info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
info: [debug] Getting list of devices instruments supports
error: Failed getting devices. Err: Error: Command failed: /bin/sh -c ‘/Applications/Xcode.app/Contents/Developer/usr/bin/instruments’ -s devices
. Stdout: . Stderr: .
info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.2”,“iOSSDKVersion”:“8.2”,“deviceName”:“iPhone 6”,“platformVersion”:“8.2”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 6 (8.2 Simulator)’
info: [debug] iOS sim UDID is 08D9F68F-E66C-43A6-90AF-BBA8DB8D2205
info: [debug] Auto-detecting iOS udid…
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Localizable.strings is not currently supported when using real devices.
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/amit.rawat/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/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. Do not manually modify!
…
info: [debug] Dynamic bootstrap path: /Users/amit.rawat/Library/Application Support/appium/bootstrap/bootstrap-4e580d338a12229a.js
info: [debug] Reusing dynamic bootstrap: /Users/amit.rawat/Library/Application Support/appium/bootstrap/bootstrap-4e580d338a12229a.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.2”,“iOSSDKVersion”:“8.2”,“deviceName”:“iPhone 6”,“platformVersion”:“8.2”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 6 (8.2 Simulator)’
info: [debug] Not setting device type since we’re using bundle ID and assuming app is already installed
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] Killing any other simulator daemons
info: [debug] Killall iOS Simulator
info: [debug] Cleaning sim data files
info: Executing: xcrun simctl erase 08D9F68F-E66C-43A6-90AF-BBA8DB8D2205 with timeout 2000
info: Executing: xcrun simctl erase 08D9F68F-E66C-43A6-90AF-BBA8DB8D2205 with timeout 2000
info: Executing: xcrun simctl erase 08D9F68F-E66C-43A6-90AF-BBA8DB8D2205 with timeout 2000
info: [debug] Cleaning mobile safari data files
warn: Applications directory /Users/amit.rawat/Library/Developer/CoreSimulator/Devices/08D9F68F-E66C-43A6-90AF-BBA8DB8D2205/data/Containers/Data/Application doesn’t exist. Have you run this simulator before?
info: [debug] Deleting /Users/amit.rawat/Library/Developer/CoreSimulator/Devices/08D9F68F-E66C-43A6-90AF-BBA8DB8D2205/data/Library/Caches/Snapshots/com.apple.mobilesafari
info: [debug] Deleting /Users/amit.rawat/Library/Developer/CoreSimulator/Devices/08D9F68F-E66C-43A6-90AF-BBA8DB8D2205/data/Library/Caches/com.apple.mobilesafari/Cache.db*
info: [debug] Deleting /Users/amit.rawat/Library/Developer/CoreSimulator/Devices/08D9F68F-E66C-43A6-90AF-BBA8DB8D2205/data/Library/Caches/com.apple.WebAppCache/.db
info: [debug] Deleting /Users/amit.rawat/Library/Developer/CoreSimulator/Devices/08D9F68F-E66C-43A6-90AF-BBA8DB8D2205/data/Library/Safari
info: [debug] Deleting /Users/amit.rawat/Library/Developer/CoreSimulator/Devices/08D9F68F-E66C-43A6-90AF-BBA8DB8D2205/data/Library/WebKit/LocalStorage/.*
info: [debug] Deleting /Users/amit.rawat/Library/Developer/CoreSimulator/Devices/08D9F68F-E66C-43A6-90AF-BBA8DB8D2205/data/Library/WebKit/GeolocationSites.plist
info: [debug] Deleting /Users/amit.rawat/Library/Developer/CoreSimulator/Devices/08D9F68F-E66C-43A6-90AF-BBA8DB8D2205/data/Library/Cookies/*.binarycookies
info: [debug] Not setting locale
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS 8.* simulator log capture
info: [debug] Not pre-launching simulator
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] Attempting to run app on iPhone 6 (8.2 Simulator)
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.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w “iPhone 6 (8.2 Simulator)” com.apple.mobilesafari -e UIASCRIPT “/Users/amit.rawat/Library/Application Support/appium/bootstrap/bootstrap-4e580d338a12229a.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {“DYLD_INSERT_LIBRARIES”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd6/InstrumentsShim.dylib",“LIB_PATH”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd6"}
info: [debug] And launch timeouts (in ms): {“global”:300000}
info: [debug] [INST] Waiting for device to boot…
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] [INST] 2015-06-19 08:16:34 +0000 Debug: evaluation finished
info: [debug] [INST] 2015-06-19 08:16:34 +0000 Debug: responding with:
info: [debug] [INST] 2015-06-19 08:16:34 +0000 Debug: Running system command #1: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”: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] [INST] 2015-06-19 08:16:36 +0000 Debug: Got new command 1 from instruments: au.setScreenOrientation(‘PORTRAIT’)
info: [debug] [INST] 2015-06-19 08:16:36 +0000 Debug: evaluating au.setScreenOrientation(‘PORTRAIT’)
info: [debug] [INST] 2015-06-19 08:16:36 +0000 Debug: target.setDeviceOrientation(“1”)
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] [INST] 2015-06-19 08:16:37 +0000 Debug: evaluation finished
info: [debug] [INST] 2015-06-19 08:16:37 +0000 Debug: responding with:
info: [debug] [INST] 2015-06-19 08:16:37 +0000 Debug: Running system command #2: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:“PORTRAIT”}…
info: [debug] [INST] 2015-06-19 08:16:37 +0000 Debug: Got new command 2 from instruments: au.mainApp().getTreeForXML()
info: [debug] [INST] 2015-06-19 08:16:37 +0000 Debug: evaluating au.mainApp().getTreeForXML()
info: [debug] [INST] 2015-06-19 08:16:39 +0000 Debug: evaluation finished
info: [debug] [INST] 2015-06-19 08:16:39 +0000 Debug: responding with:d":true,“visible”:false,“hint”:null,“path”:"/0/0",“x”:0,“y”:0,“width”:375,“height”:667},">":[]}},{“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”:375,“height”:667},">":[{“UIAButton”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/0",“x”:0,“y”:0,“width”:375,“height”:64.5},">":[]}},{“UIAButton”:{"@":{“name”:“URL”,“label”:“Address”,“value”:“Search or enter website name”,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:“Double tap to show controls”,“path”:"/0/1/1",“x”:9.5,“y”:24.5,“width”:356,“height”:29},">":[{“UIAElement”:{"@":{“name”:“URL”,“label”:“Search or enter website name”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:“Double tap to show controls”,“path”:"/0/1/1/0",“x”:11.5,“y”:24.5,“width”:352,“height”:29},">":[]}}]}},{“UIAButton”:{"@":{“name”:“Cancel”,“label”:“Cancel”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/2",“x”:379.5,“y”:24.5,“width”:56,“height”:29},">":[]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/3",“x”:0,“y”:61.5,“width”:375,“height”:2.5},">":[]}},{“UIATableView”:{"@":{“name”:“Empty list”,“label”:“Empty list”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/4",“x”:0,“y”:0,“width”:375,“height”:667},">":[]}},{“UIAScrollView”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/5",“x”:0,“y”:64,“width”:375,“height”:603},">":[{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/5/0",“x”:372.5,“y”:28,“width”:2.5,“height”:36},">":[]}},{“UIAButton”:{"@":{“name”:“Apple”,“label”:“Apple”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:“Double-tap and hold, then drag to reorder”,“path”:"/0/1/5/1",“x”:27,“y”:75,“width”:60,“height”:105},">":[]}},{“UIAButton”:{"@":{“name”:“Bing”,“label”:“Bing”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:“Double-tap and hold, then drag to reorder”,“path”:"/0/1/5/2",“x”:114,“y”:75,“width”:60,“height”:105},">":[]}},{“UIAButton”:{"@":{“name”:“Google”,“label”:“Google”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:“Double-tap and hold, then drag to reorder”,“path”:"/0/1/5/3",“x”:201,“y”:75,“width”:60,“height”:105},">":[]}},{“UIAButton”:{"@":{“name”:“Yahoo”,“label”:“Yahoo”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:“Double-tap and hold, then drag to reorder”,“path”:"/0/1/5/4",“x”:288,“y”:75,“width”:60,“height”:105},">":[]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/5/5",“x”:-36,“y”:664.5,“width”:36,“height”:2.5},">":[]}}]}},{“UIAToolbar”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/6",“x”:0,“y”:667,“width”:375,“height”:44},">":[{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/6/0",“x”:0,“y”:666.5,“width”:375,“height”:0.5},">":[]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/6/1",“x”:0,“y”:667,“width”:375,“height”:44},">":[]}}]}},{“UIAScrollView”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/7",“x”:0,“y”:20,“width”:375,“height”:647},">":[{“UIAScrollView”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/7/0",“x”:0,“y”:0,“width”:375,“height”:667},">":[
{“UIAWebView”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/7/0/0",“x”:0,“y”:64,“width”:375,“height”:559.0561224489795},">":[]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/7/0/1",“x”:372.5,“y”:616,“width”:2.5,“height”:7},">":[]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/7/0/2",“x”:368,“y”:728.5,“width”:7,“height”:2.5},">":[]}}]}}]}},{“UIAToolbar”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/8",“x”:0,“y”:623,“width”:375,“height”:44},">":[{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/8/0",“x”:0,“y”:623,“width”:375,“height”:44},">":[]}},{“UIAButton”:{"@":{“name”:“Back”,“label”:“Back”,“value”:null,“dom”:null,“enabled”:false,“valid”:true,“visible”:true,“hint”:“Double tap and hold to open history”,“path”:"/0/1/8/1",“x”:0.5,“y”:625,“width”:42,“height”:40},">":[]}},{“UIAButton”:{"@":{“name”:“Forward”,“label”:“Forward”,“value”:null,“dom”:null,“enabled”:false,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/8/2",“x”:85,“y”:625,“width”:42,“height”:40},">":[]}},{“UIAButton”:{"@":{“name”:“Share”,“label”:“Share”,“value”:null,“dom”:null,“enabled”:false,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/8/3",“x”:161.5,“y”:624,“width”:51,“height”:40},">":[]}},{“UIAButton”:{"@":{“name”:“Show Bookmarks”,“label”:“Show Bookmarks”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/8/4",“x”:239,“y”:625,“width”:57,“height”:40},">":[]}},{“UIAButton”:{"@":{“name”:“Pages”,“label”:“Pages”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/8/5",“x”:318.5,“y”:625,“width”:57,“height”:40},">":[]}}]}}]}},{“UIAWindow”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/2",“x”:0,“y”:0,“width”:375,“height”:667},">":[]}},{“UIAWindow”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/3",“x”:0,“y”:0,“width”:375,“height”:667},">":[{“UIAStatusBar”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/3/0",“x”:0,“y”:0,“width”:375,“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/3/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/3/0/1",“x”:49,“y”:0,“width”:13,“height”:20},">":[]}},{“UIAElement”:{"@":{“name”:“1:46 PM”,“label”:“1:46 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/3/0/2",“x”:165,“y”:0,“width”:45,“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/3/0/3",“x”:34
5,“y”:0,“width”:25,“height”:20},">":
info: [debug] [INST] []}}]}}]}}]}}}
info: [debug] Socket data received (8192 bytes)
info: [debug] Socket data received (267 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {“status”:0,“value”:{“UIAApplication”:{"@":{“name”:“Safari”,“label”:“Safari”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0",“x”:0,“y”:20,“width”:375,“height”:647},">":[{“UIAWindow”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,"vali
warn: [DEPRECATED] The name locator strategy has been deprecated and will be removed. Please use the accessibility id locator strategy instead.
info: [debug] Waiting up to 7000ms for condition
info: [debug] Pushing command to appium work queue: “au.getElementByName(‘URL’)”
info: [debug] Sending command to instruments: au.getElementByName(‘URL’)
info: [debug] [INST] 2015-06-19 08:16:39 +0000 Debug: Running system command #3: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:{“UIAApplication”:{"@":{“name”:“Safari”,“label”:“Safari”,“value”:null,“dom”:nul…
info: [debug] [INST] 2015-06-19 08:16:39 +0000 Debug: Got new command 3 from instruments: au.getElementByName(‘URL’)
info: [debug] [INST] 2015-06-19 08:16:39 +0000 Debug: evaluating au.getElementByName(‘URL’)
info: [debug] [INST] 2015-06-19 08:16:40 +0000 Debug: evaluation finished
info: [debug] [INST] 2015-06-19 08:16:40 +0000 Debug: Lookup returned [object UIAButton] with the name “URL” (id: 0).
info: [debug] Socket data received (38 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {“status”:0,“value”:{“ELEMENT”:“0”}}
info: [debug] Pushing command to appium work queue: “au.tapById(‘0’)”
info: [debug] Sending command to instruments: au.tapById(‘0’)
info: [debug] [INST] 2015-06-19 08:16:40 +0000 Debug: responding with:
info: [debug] [INST] 2015-06-19 08:16:40 +0000 Debug: Running system command #4: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:{“ELEMENT”:“0”}}…
info: [debug] [INST] 2015-06-19 08:16:40 +0000 Debug: Got new command 4 from instruments: au.tapById(‘0’)
info: [debug] [INST] 2015-06-19 08:16:40 +0000 Debug: evaluating au.tapById(‘0’)
info: [debug] [INST] 2015-06-19 08:16:40 +0000 Debug: UIAButton.tap()
info: [debug] Socket data received (25 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {“status”:0,“value”:""}
info: [debug] Waiting up to 0ms for condition
info: [debug] Pushing command to appium work queue: “au.getElementsByName(‘Address’)”
info: [debug] Sending command to instruments: au.getElementsByName(‘Address’)
info: [debug] [INST] 2015-06-19 08:16:41 +0000 Debug: evaluation finished
info: [debug] [INST] 2015-06-19 08:16:41 +0000 Debug: responding with:
info: [debug] [INST] 2015-06-19 08:16:41 +0000 Debug: Running system command #5: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:""}…
info: [debug] [INST] 2015-06-19 08:16:41 +0000 Debug: Got new command 5 from instruments: au.getElementsByName(‘Address’)
info: [debug] [INST] 2015-06-19 08:16:41 +0000 Debug: evaluating au.getElementsByName(‘Address’)
info: [debug] [INST] 2015-06-19 08:16:44 +0000 Debug: evaluation finished
info: [debug] [INST] 2015-06-19 08:16:44 +0000 Debug: responding with:
info: [debug] [INST] 2015-06-19 08:16:44 +0000 Debug: Running system command #6: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:[]}…
info: [debug] Socket data received (25 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {“status”:0,“value”:[]}
info: [debug] Condition unmet after 3260ms. Timing out.
error: uncaughtException: Cannot read property ‘ELEMENT’ of undefined date=Fri Jun 19 2015 13:46:44 GMT+0530 (IST), pid=27661, uid=1038989321, gid=1138207179, cwd=/Applications/Appium.app/Contents/Resources/node_modules/appium, execPath=/Applications/Appium.app/Contents/Resources/node/bin/node, version=v0.12.4, argv=[/Applications/Appium.app/Contents/Resources/node/bin/node, /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/server/main.js, --command-timeout, 7200, --pre-launch, --debug-log-spacing, --platform-version, 8.2, --platform-name, iOS, --safari, --browser-name, Safari, --device-name, iPhone 6, --launch-timeout, 300000], rss=92086272, heapTotal=94752256, heapUsed=71787640, loadavg=[2.76611328125, 2.4794921875, 2.15625], uptime=234284, trace=[column=53, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js, function=, line=1616, method=null, native=false, column=34, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js, function=fn, line=638, method=null, native=false, column=34, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js, function=Immediate._onImmediate, line=554, method=_onImmediate, native=false, column=17, file=timers.js, function=processImmediate [as _immediateCallback], line=358, method=null, native=false], stack=[TypeError: Cannot read property ‘ELEMENT’ of undefined, at [object Object]. (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:1616:53), at fn (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:638:34), at Immediate._onImmediate (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:554:34), at processImmediate [as _immediateCallback] (timers.js:358:17)]