Fix capturing of web views using remote debugger

There are two problems related to the same issue in Appium code.

The problem is in this portion of log:

```
2014-10-07 09:42:40:396 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:40:397 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"PID:52495","WIRListingKey":{"1":{"WIRConnectionIdentifierKey":"6c3097b2-cf50-4422-875b-e9c842200b0a","WIRURLKey":"http://www.apple.com/","WIRTitleKey":"","WIRPageIdentifierKey":1,"WIRTypeKey":"WIRTypeWeb"},"2":{"WIRPageIdentifierKey":2,"WIRTypeKey":"WIRTypeJavaScript","WIRTitleKey":"JSContext"}}}}
2014-10-07 09:42:40:397 - info: [debug] Remote debugger notified us of a new page listing
2014-10-07 09:42:40:397 - info: [debug] We have new pages, going to select page 2
2014-10-07 09:42:40:398 - info: [debug] [REMOTE] Selecting page 2 and forwarding socket setup
```

Here are two "pages" in listing. But the 2nd one is not a web page. It is a JavaScript context or something like that.

I've added a check that skips all "pages" that are not type of `WIRTypeWeb`.

1st full log

```
2014-10-08 16:02:57:747 - info: --> POST /wd/hub/session {"desiredCapabilities":{"platformVersion":"8.0","app":"safari","autoAcceptAlerts":true,"platformName":"iOS","deviceName":"iPhone 5","browserName":"iOS","version":"8.0"}}
2014-10-08 16:02:57:748 - info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : version
2014-10-08 16:02:57:749 - info: [debug] Configuring Safari session
2014-10-08 16:02:57:749 - info: [debug] We're on iOS8+ so not copying mobile safari app
2014-10-08 16:02:57:750 - info: [debug] Creating new appium session 03ce3bfe-d0eb-4d2d-a4da-598b1c0659fd
2014-10-08 16:02:57:751 - info: [debug] Removing any remaining instruments sockets
2014-10-08 16:02:57:752 - info: [debug] Cleaned up instruments socket /opt/appium/tmp/instruments_sock
2014-10-08 16:02:57:752 - info: [debug] Setting Xcode folder
2014-10-08 16:02:57:759 - info: [debug] Setting Xcode version
2014-10-08 16:02:57:836 - info: [debug] Setting iOS SDK Version
2014-10-08 16:02:57:938 - info: [debug] iOS SDK Version set to 8.0
2014-10-08 16:02:57:938 - info: [debug] Checking whether instruments supports our device string
2014-10-08 16:02:57:938 - info: [debug] Getting list of devices instruments supports
2014-10-08 16:02:57:947 - info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
2014-10-08 16:02:58:559 - info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"6.0.1","iOSSDKVersion":"8.0","deviceName":"iPhone 5","platformVersion":"8.0"}
2014-10-08 16:02:58:559 - info: [debug] fixDevice is on
2014-10-08 16:02:58:559 - info: [debug] Final device string is: 'iPhone 5 (8.0 Simulator)'
2014-10-08 16:02:58:559 - info: [debug] iOS sim UDID is B9F7FF80-21E7-4DEE-9C16-353A196DB9D2
2014-10-08 16:02:58:559 - info: [debug] Detecting automation tracetemplate
2014-10-08 16:02:58:566 - info: [debug] Not auto-detecting udid, running on sim
2014-10-08 16:02:58:566 - info: [debug] Localizable.strings is not currently supported when using real devices.
2014-10-08 16:02:58:566 - info: [debug] Creating instruments
2014-10-08 16:02:58:567 - warn: Your version of xcode and ios sdk do not support instruments-without-delay. Test execution will proceed more slowly
2014-10-08 16:02:58:568 - info: [debug] Preparing uiauto bootstrap
2014-10-08 16:02:58:568 - info: [debug] Dynamic bootstrap dir: /Users/appium/Library/Application Support/appium/bootstrap
2014-10-08 16:02:58:569 - info: [debug] Dynamic env: {"nodePath":"/usr/local/Cellar/node/0.10.32/bin/node","commandProxyClientPath":"/opt/appium/appium/node_modules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/opt/appium/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":true}
...4-10-08 16:02:58:574 - info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
2014-10-08 16:02:58:574 - info: [debug] Dynamic bootstrap path: /Users/appium/Library/Application Support/appium/bootstrap/bootstrap-6380655596c3091a.js
2014-10-08 16:02:58:576 - info: [debug] Reusing dynamic bootstrap: /Users/appium/Library/Application Support/appium/bootstrap/bootstrap-6380655596c3091a.js
2014-10-08 16:02:58:577 - info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"6.0.1","iOSSDKVersion":"8.0","deviceName":"iPhone 5","platformVersion":"8.0"}
2014-10-08 16:02:58:577 - info: [debug] fixDevice is on
2014-10-08 16:02:58:577 - info: [debug] Final device string is: 'iPhone 5 (8.0 Simulator)'
2014-10-08 16:02:58:578 - info: [debug] Not setting device type since we're using bundle ID and assuming app is already installed
2014-10-08 16:02:58:578 - info: [debug] Checking whether we need to set app preferences
2014-10-08 16:02:58:578 - info: [debug] Running ios sim reset flow
2014-10-08 16:02:58:578 - info: [debug] Killing the simulator process
2014-10-08 16:02:58:578 - info: [debug] Killall iOS Simulator
2014-10-08 16:02:58:580 - info: [debug] Killing any other simulator daemons
2014-10-08 16:02:58:611 - info: [debug] Cleaning sim data files
2014-10-08 16:02:58:612 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/TCC
2014-10-08 16:02:58:612 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/Caches/locationd
2014-10-08 16:02:58:612 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/BackBoard/applicationState.plist
2014-10-08 16:02:58:613 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Media
2014-10-08 16:02:58:613 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/Keychains
2014-10-08 16:02:58:614 - info: [debug] Cleaning sim preferences
2014-10-08 16:02:58:615 - info: [debug] Cleaning mobile safari data files
2014-10-08 16:02:58:617 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/Caches/Snapshots/com.apple.mobilesafari
2014-10-08 16:02:58:620 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/Caches/com.apple.mobilesafari/Cache.db*
2014-10-08 16:02:58:622 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/Caches/com.apple.WebAppCache/*.db
2014-10-08 16:02:58:624 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/Safari/*.plist
2014-10-08 16:02:58:627 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/WebKit/LocalStorage/*.*
2014-10-08 16:02:58:630 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/WebKit/GeolocationSites.plist
2014-10-08 16:02:58:633 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/Cookies/*.binarycookies
2014-10-08 16:02:58:635 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Containers/Data/Application/FEB498F8-FB93-4936-8D55-A4214DCE8D63/Library/Caches/Snapshots/com.apple.mobilesafari
2014-10-08 16:02:58:637 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Containers/Data/Application/FEB498F8-FB93-4936-8D55-A4214DCE8D63/Library/Caches/com.apple.mobilesafari/Cache.db*
2014-10-08 16:02:58:641 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Containers/Data/Application/FEB498F8-FB93-4936-8D55-A4214DCE8D63/Library/Caches/com.apple.WebAppCache/*.db
2014-10-08 16:02:58:645 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Containers/Data/Application/FEB498F8-FB93-4936-8D55-A4214DCE8D63/Library/Safari/*.plist
2014-10-08 16:02:58:648 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Containers/Data/Application/FEB498F8-FB93-4936-8D55-A4214DCE8D63/Library/WebKit/LocalStorage/*.*
2014-10-08 16:02:58:651 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Containers/Data/Application/FEB498F8-FB93-4936-8D55-A4214DCE8D63/Library/WebKit/GeolocationSites.plist
2014-10-08 16:02:58:653 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Containers/Data/Application/FEB498F8-FB93-4936-8D55-A4214DCE8D63/Library/Cookies/*.binarycookies
2014-10-08 16:02:58:657 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Containers/Data/Application/FEB498F8-FB93-4936-8D55-A4214DCE8D63/Library/Preferences/*.plist
2014-10-08 16:02:58:667 - info: [debug] Not setting locale
2014-10-08 16:02:58:668 - info: [debug] No iOS / app preferences to set
2014-10-08 16:02:58:668 - info: [debug] Starting iOS 8.* simulator log capture
2014-10-08 16:02:58:678 - info: [debug] Not pre-launching simulator
2014-10-08 16:02:58:678 - info: [debug] Not installing to real device since we're on sim
2014-10-08 16:02:58:678 - info: [debug] Starting command proxy.
2014-10-08 16:02:58:680 - info: [debug] Instruments socket server started at /opt/appium/tmp/instruments_sock
2014-10-08 16:02:58:681 - info: [debug] Starting instruments
2014-10-08 16:02:58:687 - info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
2014-10-08 16:02:58:688 - info: Launching instruments
2014-10-08 16:02:58:692 - info: [debug] Attempting to run app on iPhone 5 (8.0 Simulator)
2014-10-08 16:02:58:693 - 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 /opt/appium/tmp/appium-instruments/instrumentscli0.trace -w "iPhone 5 (8.0 Simulator)" com.apple.mobilesafari -e UIASCRIPT "/Users/appium/Library/Application Support/appium/bootstrap/bootstrap-6380655596c3091a.js" -e UIARESULTSPATH /opt/appium/tmp/appium-instruments
2014-10-08 16:02:58:693 - info: [debug] And extra without-delay env: {}
2014-10-08 16:02:58:693 - info: [debug] And launch timeouts (in ms): {"global":90000}
2014-10-08 16:02:59:171 - info: [debug] 
 Waiting for device to boot...
2014-10-08 16:03:05:338 - info: Instruments is ready to receive commands
2014-10-08 16:03:05:338 - info: [debug] Instruments launched. Starting poll loop for new commands.
2014-10-08 16:03:05:338 - info: [debug] Setting bootstrap config keys/values
2014-10-08 16:03:05:338 - info: [debug] Pushing command to appium work queue: "target = $.target();\nau = $;\n$.isVerbose = true;\n"
2014-10-08 16:03:05:340 - info: [debug] Socket data received (2 bytes)
2014-10-08 16:03:05:340 - info: [debug] Socket data being routed.
2014-10-08 16:03:05:341 - info: [debug] Sending command to instruments: target = $.target();
au = $;
$.isVerbose = true;

2014-10-08 16:03:06:236 - info: [debug] 
 2014-10-08 12:03:06 +0000 Debug: evaluation finished
2014-10-08 16:03:06:237 - info: [debug] 
 2014-10-08 12:03:06 +0000 Debug: responding with:
2014-10-08 16:03:06:238 - info: [debug] 
 2014-10-08 12:03:06 +0000 Debug: Running system command #1: /usr/local/Cellar/node/0.10.32/bin/node /opt/appium/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /opt/appium/tmp/instruments_sock 2,{"status":0,"value":true}...
2014-10-08 16:03:06:273 - info: [debug] Socket data received (27 bytes)
2014-10-08 16:03:06:274 - info: [debug] Socket data being routed.
2014-10-08 16:03:06:274 - info: [debug] Got result from instruments: {"status":0,"value":true}
2014-10-08 16:03:06:274 - info: [debug] Setting initial orientation to PORTRAIT
2014-10-08 16:03:06:274 - info: [debug] Pushing command to appium work queue: "au.setScreenOrientation('PORTRAIT')"
2014-10-08 16:03:06:274 - info: [debug] Sending command to instruments: au.setScreenOrientation('PORTRAIT')
2014-10-08 16:03:07:308 - info: [debug] 
 2014-10-08 12:03:07 +0000 Debug: Got new command 1 from instruments: au.setScreenOrientation('PORTRAIT')
2014-10-08 16:03:07:309 - info: [debug] 
 2014-10-08 12:03:07 +0000 Debug: evaluating au.setScreenOrientation('PORTRAIT')
2014-10-08 16:03:07:310 - info: [debug] 
 2014-10-08 12:03:07 +0000 Debug: target.setDeviceOrientation("1")
2014-10-08 16:03:08:378 - info: [debug] 
 2014-10-08 12:03:08 +0000 Debug: evaluation finished
2014-10-08 16:03:08:380 - info: [debug] 
 2014-10-08 12:03:08 +0000 Debug: responding with:
2014-10-08 16:03:08:382 - info: [debug] 
 2014-10-08 12:03:08 +0000 Debug: Running system command #2: /usr/local/Cellar/node/0.10.32/bin/node /opt/appium/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /opt/appium/tmp/instruments_sock 2,{"status":0,"value":"PORTRAIT"}...
2014-10-08 16:03:08:453 - info: [debug] Socket data received (33 bytes)
2014-10-08 16:03:08:453 - info: [debug] Socket data being routed.
2014-10-08 16:03:08:454 - info: [debug] Got result from instruments: {"status":0,"value":"PORTRAIT"}
2014-10-08 16:03:08:454 - info: [debug] Waiting for app source to contain elements
2014-10-08 16:03:08:454 - info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"
2014-10-08 16:03:08:454 - info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()
2014-10-08 16:03:09:318 - info: [debug] 
 2014-10-08 12:03:09 +0000 Debug: Got new command 2 from instruments: au.mainApp().getTreeForXML()
2014-10-08 16:03:09:319 - info: [debug] 
 2014-10-08 12:03:09 +0000 Debug: evaluating au.mainApp().getTreeForXML()
2014-10-08 16:03:10:252 - info: [debug] 
 2014-10-08 12:03:10 +0000 Debug: evaluation finished
2014-10-08 16:03:10:254 - info: [debug] 
 2014-10-08 12:03:10 +0000 Debug: responding with:d":true,"visible":false,"hint":null,"path":"/0/0","x":0,"y":0,"width":320,"height":568},">":[]}},{"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},">":[{"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":320,"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":301,"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":297,"height":29},">":[]}}]}},{"UIAButton":{"@":{"name":"Cancel","label":"Cancel","value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/2","x":324.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":320,"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":320,"height":568},">":[]}},{"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":320,"height":504},">":[{"UIAImage":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/5/0","x":316.5,"y":28,"width":3.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":16,"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":92,"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":168,"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":244,"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":564.5,"width":36,"height":3.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":568,"width":320,"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":567.5,"width":320,"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":568,"width":320,"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":320,"height":548},">":[{"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":320,"height":568},">":[{"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":320,"height":460.0816650390625},">":[]}},{"UIAImage":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/7/0/1","x":316.5,"y":517,"width":3.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":313,"y":628.5,"width":7,"height":3.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":524,"width":320,"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":524,"width":320,"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":526,"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":71,"y":526,"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":133.5,"y":525,"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":197,"y":526,"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":263.5,"y":526,"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":320,"height":568},">":[]}},{"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":320,"height":568},">":[{"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":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/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":"4:03 PM","label":"4:03 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":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/3/0/3","x":290,"y":0,"width":25,"height":20},">":[
2014-10-08 16:03:10:254 - info: [debug] 
 ]}}]}}]}}]}}}
2014-10-08 16:03:10:255 - info: [debug] 
 2014-10-08 12:03:10 +0000 Debug: Running system command #3: /usr/local/Cellar/node/0.10.32/bin/node /opt/appium/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /opt/appium/tmp/instruments_sock 2,{"status":0,"value":{"UIAApplication":{"@":{"name":"Safari","label":"Safari","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":...
2014-10-08 16:03:10:305 - info: [debug] Socket data received (8192 bytes)
2014-10-08 16:03:10:305 - info: [debug] Socket data received (266 bytes)
2014-10-08 16:03:10:305 - info: [debug] Socket data being routed.
2014-10-08 16:03:10:305 - 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":320,"height":548},">":[{"UIAWindow":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"vali
2014-10-08 16:03:10:306 - info: [debug] We're on iOS7 simulator: clicking apple button to get into a webview
2014-10-08 16:03:10:307 - info: [debug] Waiting up to 7000ms for condition
2014-10-08 16:03:10:307 - info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"
2014-10-08 16:03:10:307 - info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()
2014-10-08 16:03:11:193 - info: [debug] 
 2014-10-08 12:03:11 +0000 Debug: Got new command 3 from instruments: au.mainApp().getTreeForXML()
2014-10-08 16:03:11:194 - info: [debug] 
 2014-10-08 12:03:11 +0000 Debug: evaluating au.mainApp().getTreeForXML()
2014-10-08 16:03:11:860 - info: [debug] 
 2014-10-08 12:03:11 +0000 Debug: evaluation finished
2014-10-08 16:03:11:862 - info: [debug] 
 2014-10-08 12:03:11 +0000 Debug: responding with:d":true,"visible":false,"hint":null,"path":"/0/0","x":0,"y":0,"width":320,"height":568},">":[]}},{"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},">":[{"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":320,"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":301,"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":297,"height":29},">":[]}}]}},{"UIAButton":{"@":{"name":"Cancel","label":"Cancel","value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/2","x":324.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":320,"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":320,"height":568},">":[]}},{"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":320,"height":504},">":[{"UIAImage":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/5/0","x":316.5,"y":28,"width":3.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":16,"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":92,"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":168,"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":244,"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":564.5,"width":36,"height":3.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":568,"width":320,"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":567.5,"width":320,"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":568,"width":320,"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":320,"height":548},">":[{"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":320,"height":568},">":[{"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":320,"height":460.0816650390625},">":[]}},{"UIAImage":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/7/0/1","x":316.5,"y":517,"width":3.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":313,"y":628.5,"width":7,"height":3.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":524,"width":320,"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":524,"width":320,"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":526,"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":71,"y":526,"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":133.5,"y":525,"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":197,"y":526,"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":263.5,"y":526,"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":320,"height":568},">":[]}},{"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":320,"height":568},">":[{"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":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/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":"4:03 PM","label":"4:03 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":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/3/0/3","x":290,"y":0,"width":25,"height":20},">":[
2014-10-08 16:03:11:863 - info: [debug] 
 ]}}]}}]}}]}}}
2014-10-08 16:03:11:864 - info: [debug] 
 2014-10-08 12:03:11 +0000 Debug: Running system command #4: /usr/local/Cellar/node/0.10.32/bin/node /opt/appium/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /opt/appium/tmp/instruments_sock 2,{"status":0,"value":{"UIAApplication":{"@":{"name":"Safari","label":"Safari","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":...
2014-10-08 16:03:11:913 - info: [debug] Socket data received (8192 bytes)
2014-10-08 16:03:11:913 - info: [debug] Socket data received (266 bytes)
2014-10-08 16:03:11:913 - info: [debug] Socket data being routed.
2014-10-08 16:03:11:913 - 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":320,"height":548},">":[{"UIAWindow":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"vali
2014-10-08 16:03:11:919 - info: [debug] Pushing command to appium work queue: "au.getElementByIndexPath('/0/1/5/1')"
2014-10-08 16:03:11:919 - info: [debug] Sending command to instruments: au.getElementByIndexPath('/0/1/5/1')
2014-10-08 16:03:12:936 - info: [debug] 
 2014-10-08 12:03:12 +0000 Debug: Got new command 4 from instruments: au.getElementByIndexPath('/0/1/5/1')
2014-10-08 16:03:12:938 - info: [debug] 
 2014-10-08 12:03:12 +0000 Debug: evaluating au.getElementByIndexPath('/0/1/5/1')
2014-10-08 16:03:12:939 - info: [debug] 
 2014-10-08 12:03:12 +0000 Debug: evaluation finished
2014-10-08 16:03:12:941 - info: [debug] 
 2014-10-08 12:03:12 +0000 Debug: Lookup returned [object UIAButton] with the name "Apple" (id: 0).
2014-10-08 16:03:12:943 - info: [debug] 
 2014-10-08 12:03:12 +0000 Debug: responding with:
2014-10-08 16:03:12:944 - info: [debug] 
 2014-10-08 12:03:12 +0000 Debug: Running system command #5: /usr/local/Cellar/node/0.10.32/bin/node /opt/appium/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /opt/appium/tmp/instruments_sock 2,{"status":0,"value":{"ELEMENT":"0"}}...
2014-10-08 16:03:12:983 - info: [debug] Socket data received (38 bytes)
2014-10-08 16:03:12:984 - info: [debug] Socket data being routed.
2014-10-08 16:03:12:984 - info: [debug] Got result from instruments: {"status":0,"value":{"ELEMENT":"0"}}
2014-10-08 16:03:12:984 - info: [debug] Pushing command to appium work queue: "au.tapById('0')"
2014-10-08 16:03:12:984 - info: [debug] Sending command to instruments: au.tapById('0')
2014-10-08 16:03:14:015 - info: [debug] 
 2014-10-08 12:03:13 +0000 Debug: Got new command 5 from instruments: au.tapById('0')
2014-10-08 16:03:14:016 - info: [debug] 
 2014-10-08 12:03:13 +0000 Debug: evaluating au.tapById('0')
2014-10-08 16:03:14:018 - info: [debug] 
 2014-10-08 12:03:13 +0000 Debug: target.frontMostApp().elements()[1].elements()[5].elements()[1].tap()
2014-10-08 16:03:14:082 - info: [debug] 
 2014-10-08 12:03:14 +0000 Debug: evaluation finished
2014-10-08 16:03:14:086 - info: [debug] 
 2014-10-08 12:03:14 +0000 Debug: responding with:
2014-10-08 16:03:14:089 - info: [debug] 
 2014-10-08 12:03:14 +0000 Debug: Running system command #6: /usr/local/Cellar/node/0.10.32/bin/node /opt/appium/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /opt/appium/tmp/instruments_sock 2,{"status":0,"value":""}...
2014-10-08 16:03:14:203 - info: [debug] Socket data received (25 bytes)
2014-10-08 16:03:14:204 - info: [debug] Socket data being routed.
2014-10-08 16:03:14:204 - info: [debug] Got result from instruments: {"status":0,"value":""}
2014-10-08 16:03:14:204 - info: [debug] Navigating to most recently opened webview
2014-10-08 16:03:14:205 - info: [debug] [REMOTE] Debugger socket connected to ::1:27753
2014-10-08 16:03:14:205 - info: [debug] [REMOTE] Sending connection key
2014-10-08 16:03:14:205 - info: [debug] [REMOTE] Sending _rpc_reportIdentifier: message to remote debugger
2014-10-08 16:03:14:205 - info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"ab4c02e9-b212-4d66-b11e-fa09a86dc666"},"__selector":"_rpc_reportIdentifier:"}
2014-10-08 16:03:14:276 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-08 16:03:14:277 - info: [debug] [REMOTE] {"__selector":"_rpc_reportSetup:","__argument":{"WIRSimulatorNameKey":"iPhone Simulator","WIRSimulatorProductVersionKey":"8.0","WIRSimulatorBuildKey":"12A365"}}
2014-10-08 16:03:14:277 - info: [debug] [REMOTE] Sim name: iPhone Simulator
2014-10-08 16:03:14:277 - info: [debug] [REMOTE] Sim build: 12A365
2014-10-08 16:03:14:277 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-08 16:03:14:278 - info: [debug] [REMOTE] {"__selector":"_rpc_reportConnectedApplicationList:","__argument":{"WIRApplicationDictionaryKey":{"PID:96407":{"WIRApplicationBundleIdentifierKey":"com.apple.mobilesafari","WIRApplicationNameKey":"Safari","WIRIsApplicationProxyKey":false,"WIRIsApplicationActiveKey":1,"WIRApplicationIdentifierKey":"PID:96407"},"PID:96413":{"WIRApplicationBundleIdentifierKey":"com.apple.WebKit.WebContent","WIRHostApplicationIdentifierKey":"PID:96407","WIRApplicationNameKey":"","WIRIsApplicationProxyKey":true,"WIRIsApplicationActiveKey":0,"WIRApplicationIdentifierKey":"PID:96413"}}}}
2014-10-08 16:03:14:278 - info: [debug] Found separate bundleId com.apple.WebKit.WebContent acting as proxy for com.apple.mobilesafari. Going to use its app ID key of PID:96413 instead
2014-10-08 16:03:14:278 - info: [debug] Using remote debugger app key: PID:96413
2014-10-08 16:03:14:278 - info: [debug] [REMOTE] Selecting app
2014-10-08 16:03:14:278 - info: [debug] [REMOTE] Sending _rpc_forwardGetListing: message to remote debugger
2014-10-08 16:03:14:279 - info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"ab4c02e9-b212-4d66-b11e-fa09a86dc666","WIRApplicationIdentifierKey":"PID:96413"},"__selector":"_rpc_forwardGetListing:"}
2014-10-08 16:03:14:280 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-08 16:03:14:280 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"PID:96413","WIRListingKey":{"1":{"WIRPageIdentifierKey":1,"WIRURLKey":"http://www.apple.com/","WIRTitleKey":"","WIRTypeKey":"WIRTypeWeb"},"2":{"WIRPageIdentifierKey":2,"WIRTypeKey":"WIRTypeJavaScript","WIRTitleKey":"JSContext"}}}}
2014-10-08 16:03:14:281 - info: [debug] Picking webview WEBVIEW_2
2014-10-08 16:03:14:281 - info: [debug] Attempting to set context to 'WEBVIEW_2'
2014-10-08 16:03:14:281 - info: [debug] [REMOTE] Selecting page 2 and forwarding socket setup
2014-10-08 16:03:14:281 - info: [debug] [REMOTE] Sending _rpc_forwardSocketSetup: message to remote debugger
2014-10-08 16:03:14:282 - info: [debug] [REMOTE] {"__argument":{"WIRApplicationIdentifierKey":"PID:96413","WIRConnectionIdentifierKey":"ab4c02e9-b212-4d66-b11e-fa09a86dc666","WIRSenderKey":"c03cc79b-39f7-452f-9e47-a1dfbf8f321f","WIRPageIdentifierKey":2},"__selector":"_rpc_forwardSocketSetup:"}
2014-10-08 16:03:14:282 - info: [debug] [REMOTE] Set sender key
2014-10-08 16:03:14:283 - info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-10-08 16:03:14:486 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-08 16:03:14:486 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"PID:96407","WIRListingKey":{}}}
2014-10-08 16:03:14:486 - info: [debug] [REMOTE] New page listing did not match the app id we are currently using, ignoring
2014-10-08 16:03:14:486 - info: [debug] [REMOTE] Receiving data from remote debugger



2014-10-08 16:03:14:487 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"PID:96413","WIRListingKey":{"1":{"WIRPageIdentifierKey":1,"WIRURLKey":"http://www.apple.com/","WIRTitleKey":"Apple","WIRTypeKey":"WIRTypeWeb"}}}}
2014-10-08 16:03:14:487 - info: [debug] Remote debugger notified us of a new page listing
2014-10-08 16:03:14:487 - info: [debug] We don't appear to have window set yet, ignoring
2014-10-08 16:03:14:779 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-08 16:03:14:780 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"PID:96413","WIRListingKey":{"1":{"WIRPageIdentifierKey":1,"WIRURLKey":"http://www.apple.com/","WIRTitleKey":"Apple","WIRTypeKey":"WIRTypeWeb"}}}}
2014-10-08 16:03:14:780 - info: [debug] Remote debugger notified us of a new page listing
2014-10-08 16:03:14:780 - info: [debug] We don't appear to have window set yet, ignoring
2014-10-08 16:03:15:375 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-08 16:03:15:376 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"PID:96413","WIRListingKey":{"1":{"WIRPageIdentifierKey":1,"WIRURLKey":"http://www.apple.com/","WIRTitleKey":"Apple","WIRTypeKey":"WIRTypeWeb"}}}}
2014-10-08 16:03:15:376 - info: [debug] Remote debugger notified us of a new page listing
2014-10-08 16:03:15:376 - info: [debug] We don't appear to have window set yet, ignoring
2014-10-08 16:04:10:201 - info: [debug] Didn't get a new command in 60 secs, shutting down...
2014-10-08 16:04:10:202 - info: Shutting down appium session
2014-10-08 16:04:10:202 - info: [debug] Stopping ios
2014-10-08 16:04:10:202 - info: [debug] Destroying instruments client socket.
2014-10-08 16:04:10:203 - info: [debug] Closing socket server.
2014-10-08 16:04:10:203 - info: [debug] Instruments socket server was closed
2014-10-08 16:04:10:204 - info: [debug] Sending sigterm to instruments
2014-10-08 16:04:10:207 - info: [debug] 
 2014-10-08 12:04:10 +0000 Stopped: Script was stopped by the user
2014-10-08 16:04:10:222 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-08 16:04:10:222 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationDisconnected:","__argument":{"WIRApplicationBundleIdentifierKey":"com.apple.mobilesafari","WIRApplicationNameKey":"Safari","WIRIsApplicationProxyKey":false,"WIRIsApplicationActiveKey":1,"WIRApplicationIdentifierKey":"PID:96407"}}
2014-10-08 16:04:10:222 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-08 16:04:10:223 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationDisconnected:","__argument":{"WIRApplicationBundleIdentifierKey":"com.apple.WebKit.WebContent","WIRHostApplicationIdentifierKey":"PID:96407","WIRApplicationNameKey":"","WIRIsApplicationProxyKey":true,"WIRIsApplicationActiveKey":0,"WIRApplicationIdentifierKey":"PID:96413"}}
2014-10-08 16:04:10:921 - info: [debug] 
 Instruments Trace Complete (Duration : 69.196114s; Output : /opt/appium/tmp/appium-instruments/instrumentscli0.trace)
2014-10-08 16:04:10:939 - info: [debug] [INSTSERVER] Instruments exited with code 0
2014-10-08 16:04:10:939 - info: [debug] Cleaning up after instruments exit
2014-10-08 16:04:10:939 - info: [debug] Stopping iOS log capture
2014-10-08 16:04:10:939 - info: [debug] [REMOTE] Disconnecting from remote debugger
2014-10-08 16:04:10:940 - info: [debug] Running ios sim reset flow
2014-10-08 16:04:10:940 - info: [debug] Killing the simulator process
2014-10-08 16:04:10:940 - info: [debug] Killall iOS Simulator
2014-10-08 16:04:10:942 - info: [debug] Killing any other simulator daemons
2014-10-08 16:04:10:944 - info: [debug] [REMOTE] Debugger socket disconnected
2014-10-08 16:04:10:999 - info: [debug] Cleaning sim data files
2014-10-08 16:04:10:999 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/TCC
2014-10-08 16:04:11:000 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/Caches/locationd
2014-10-08 16:04:11:001 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/BackBoard/applicationState.plist
2014-10-08 16:04:11:001 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Media
2014-10-08 16:04:11:005 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/Keychains
2014-10-08 16:04:11:006 - info: [debug] Cleaning sim preferences
2014-10-08 16:04:11:006 - info: [debug] Clearing key: CurrentDeviceUDID
2014-10-08 16:04:11:006 - info: [debug] Writing new preferences plist data
2014-10-08 16:04:11:023 - info: [debug] Cleaning mobile safari data files
2014-10-08 16:04:11:025 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/Caches/Snapshots/com.apple.mobilesafari
2014-10-08 16:04:11:027 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/Caches/com.apple.mobilesafari/Cache.db*
2014-10-08 16:04:11:029 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/Caches/com.apple.WebAppCache/*.db
2014-10-08 16:04:11:030 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/Safari/*.plist
2014-10-08 16:04:11:032 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/WebKit/LocalStorage/*.*
2014-10-08 16:04:11:033 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/WebKit/GeolocationSites.plist
2014-10-08 16:04:11:035 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Library/Cookies/*.binarycookies
2014-10-08 16:04:11:037 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Containers/Data/Application/FEB498F8-FB93-4936-8D55-A4214DCE8D63/Library/Caches/Snapshots/com.apple.mobilesafari
2014-10-08 16:04:11:038 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Containers/Data/Application/FEB498F8-FB93-4936-8D55-A4214DCE8D63/Library/Caches/com.apple.mobilesafari/Cache.db*
2014-10-08 16:04:11:040 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Containers/Data/Application/FEB498F8-FB93-4936-8D55-A4214DCE8D63/Library/Caches/com.apple.WebAppCache/*.db
2014-10-08 16:04:11:041 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Containers/Data/Application/FEB498F8-FB93-4936-8D55-A4214DCE8D63/Library/Safari/*.plist
2014-10-08 16:04:11:043 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Containers/Data/Application/FEB498F8-FB93-4936-8D55-A4214DCE8D63/Library/WebKit/LocalStorage/*.*
2014-10-08 16:04:11:044 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Containers/Data/Application/FEB498F8-FB93-4936-8D55-A4214DCE8D63/Library/WebKit/GeolocationSites.plist
2014-10-08 16:04:11:046 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Containers/Data/Application/FEB498F8-FB93-4936-8D55-A4214DCE8D63/Library/Cookies/*.binarycookies
2014-10-08 16:04:11:047 - info: [debug] Deleting /Users/appium/Library/Developer/CoreSimulator/Devices/B9F7FF80-21E7-4DEE-9C16-353A196DB9D2/data/Containers/Data/Application/FEB498F8-FB93-4936-8D55-A4214DCE8D63/Library/Preferences/*.plist
2014-10-08 16:04:11:053 - info: [debug] Cleaning up appium session
2014-10-08 16:04:11:054 - info: [debug] We shut down because no new commands came in
```

2nd full log

```
2014-10-07 09:41:40:333 - info: [debug] 
 Waiting for device to boot...
2014-10-07 09:42:30:673 - info: Instruments is ready to receive commands
2014-10-07 09:42:30:674 - info: [debug] Instruments launched. Starting poll loop for new commands.
2014-10-07 09:42:30:674 - info: [debug] Setting bootstrap config keys/values
2014-10-07 09:42:30:674 - info: [debug] Pushing command to appium work queue: "target = $.target();\nau = $;\n$.isVerbose = true;\n"
2014-10-07 09:42:30:676 - info: [debug] Socket data received (2 bytes)
2014-10-07 09:42:30:676 - info: [debug] Socket data being routed.
2014-10-07 09:42:30:676 - info: [debug] Sending command to instruments: target = $.target();
au = $;
$.isVerbose = true;

2014-10-07 09:42:31:711 - info: [debug] 
 2014-10-07 05:42:31 +0000 Debug: evaluation finished
2014-10-07 09:42:31:712 - info: [debug] 
 2014-10-07 05:42:31 +0000 Debug: responding with:
2014-10-07 09:42:31:713 - info: [debug] 
 2014-10-07 05:42:31 +0000 Debug: Running system command #1: /usr/local/Cellar/node/0.10.32/bin/node /opt/appium/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /opt/appium/tmp/instruments_sock 2,{"status":0,"value":true}...
2014-10-07 09:42:31:748 - info: [debug] Socket data received (27 bytes)
2014-10-07 09:42:31:749 - info: [debug] Socket data being routed.
2014-10-07 09:42:31:749 - info: [debug] Got result from instruments: {"status":0,"value":true}
2014-10-07 09:42:31:749 - info: [debug] Setting initial orientation to PORTRAIT
2014-10-07 09:42:31:749 - info: [debug] Pushing command to appium work queue: "au.setScreenOrientation('PORTRAIT')"
2014-10-07 09:42:31:749 - info: [debug] Sending command to instruments: au.setScreenOrientation('PORTRAIT')
2014-10-07 09:42:32:770 - info: [debug] 
 2014-10-07 05:42:32 +0000 Debug: Got new command 1 from instruments: au.setScreenOrientation('PORTRAIT')
2014-10-07 09:42:32:771 - info: [debug] 
 2014-10-07 05:42:32 +0000 Debug: evaluating au.setScreenOrientation('PORTRAIT')
2014-10-07 09:42:32:773 - info: [debug] 
 2014-10-07 05:42:32 +0000 Debug: target.setDeviceOrientation("1")
2014-10-07 09:42:33:839 - info: [debug] 
 2014-10-07 05:42:33 +0000 Debug: evaluation finished
2014-10-07 09:42:33:841 - info: [debug] 
 2014-10-07 05:42:33 +0000 Debug: responding with:
2014-10-07 09:42:33:842 - info: [debug] 
 2014-10-07 05:42:33 +0000 Debug: Running system command #2: /usr/local/Cellar/node/0.10.32/bin/node /opt/appium/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /opt/appium/tmp/instruments_sock 2,{"status":0,"value":"PORTRAIT"}...
2014-10-07 09:42:33:886 - info: [debug] Socket data received (33 bytes)
2014-10-07 09:42:33:886 - info: [debug] Socket data being routed.
2014-10-07 09:42:33:886 - info: [debug] Got result from instruments: {"status":0,"value":"PORTRAIT"}
2014-10-07 09:42:33:886 - info: [debug] Waiting for app source to contain elements
2014-10-07 09:42:33:886 - info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"
2014-10-07 09:42:33:887 - info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()
2014-10-07 09:42:34:770 - info: [debug] 
 2014-10-07 05:42:34 +0000 Debug: Got new command 2 from instruments: au.mainApp().getTreeForXML()
2014-10-07 09:42:34:770 - info: [debug] 
 2014-10-07 05:42:34 +0000 Debug: evaluating au.mainApp().getTreeForXML()
2014-10-07 09:42:35:860 - info: [debug] 
 2014-10-07 05:42:35 +0000 Debug: evaluation finished
2014-10-07 09:42:35:876 - info: [debug] 
 2014-10-07 05:42:35 +0000 Debug: responding with:d":true,"visible":false,"hint":null,"path":"/0/0","x":0,"y":0,"width":320,"height":568},">":[]}},{"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},">":[{"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":320,"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":301,"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":297,"height":29},">":[]}}]}},{"UIAButton":{"@":{"name":"Cancel","label":"Cancel","value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/2","x":324.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":320,"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":320,"height":568},">":[]}},{"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":320,"height":504},">":[{"UIAImage":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/5/0","x":316.5,"y":28,"width":3.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":16,"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":92,"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":168,"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":244,"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":564.5,"width":36,"height":3.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":568,"width":320,"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":567.5,"width":320,"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":568,"width":320,"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":320,"height":548},">":[{"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":320,"height":568},">":[{"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":320,"height":460.0816650390625},">":[]}},{"UIAImage":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/7/0/1","x":316.5,"y":517,"width":3.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":313,"y":628.5,"width":7,"height":3.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":524,"width":320,"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":524,"width":320,"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":526,"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":71,"y":526,"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":133.5,"y":525,"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":197,"y":526,"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":263.5,"y":526,"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":320,"height":568},">":[]}},{"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":320,"height":568},">":[{"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":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/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":"9:42 AM","label":"9:42 AM","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":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/3/0/3","x":290,"y":0,"width":25,"height":20},">":[
2014-10-07 09:42:35:876 - info: [debug] 
 ]}}]}}]}}]}}}
2014-10-07 09:42:35:877 - info: [debug] 
 2014-10-07 05:42:35 +0000 Debug: Running system command #3: /usr/local/Cellar/node/0.10.32/bin/node /opt/appium/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /opt/appium/tmp/instruments_sock 2,{"status":0,"value":{"UIAApplication":{"@":{"name":"Safari","label":"Safari","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":...
2014-10-07 09:42:35:893 - info: [debug] Socket data received (8192 bytes)
2014-10-07 09:42:35:893 - info: [debug] Socket data received (266 bytes)
2014-10-07 09:42:35:894 - info: [debug] Socket data being routed.
2014-10-07 09:42:35:894 - 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":320,"height":548},">":[{"UIAWindow":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"vali
2014-10-07 09:42:35:896 - info: [debug] We're on iOS7 simulator: clicking apple button to get into a webview
2014-10-07 09:42:35:896 - info: [debug] Waiting up to 7000ms for condition
2014-10-07 09:42:35:896 - info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"
2014-10-07 09:42:35:896 - info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()
2014-10-07 09:42:36:901 - info: [debug] 
 2014-10-07 05:42:36 +0000 Debug: Got new command 3 from instruments: au.mainApp().getTreeForXML()
2014-10-07 09:42:36:902 - info: [debug] 
 2014-10-07 05:42:36 +0000 Debug: evaluating au.mainApp().getTreeForXML()
2014-10-07 09:42:37:567 - info: [debug] 
 2014-10-07 05:42:37 +0000 Debug: evaluation finished
2014-10-07 09:42:37:568 - info: [debug] 
 2014-10-07 05:42:37 +0000 Debug: responding with:d":true,"visible":false,"hint":null,"path":"/0/0","x":0,"y":0,"width":320,"height":568},">":[]}},{"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},">":[{"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":320,"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":301,"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":297,"height":29},">":[]}}]}},{"UIAButton":{"@":{"name":"Cancel","label":"Cancel","value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/2","x":324.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":320,"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":320,"height":568},">":[]}},{"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":320,"height":504},">":[{"UIAImage":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/5/0","x":316.5,"y":28,"width":3.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":16,"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":92,"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":168,"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":244,"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":564.5,"width":36,"height":3.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":568,"width":320,"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":567.5,"width":320,"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":568,"width":320,"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":320,"height":548},">":[{"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":320,"height":568},">":[{"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":320,"height":460.0816650390625},">":[]}},{"UIAImage":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/7/0/1","x":316.5,"y":517,"width":3.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":313,"y":628.5,"width":7,"height":3.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":524,"width":320,"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":524,"width":320,"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":526,"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":71,"y":526,"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":133.5,"y":525,"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":197,"y":526,"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":263.5,"y":526,"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":320,"height":568},">":[]}},{"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":320,"height":568},">":[{"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":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/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":"9:42 AM","label":"9:42 AM","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":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/3/0/3","x":290,"y":0,"width":25,"height":20},">":[
2014-10-07 09:42:37:569 - info: [debug] 
 ]}}]}}]}}]}}}
2014-10-07 09:42:37:570 - info: [debug] 
 2014-10-07 05:42:37 +0000 Debug: Running system command #4: /usr/local/Cellar/node/0.10.32/bin/node /opt/appium/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /opt/appium/tmp/instruments_sock 2,{"status":0,"value":{"UIAApplication":{"@":{"name":"Safari","label":"Safari","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":...
2014-10-07 09:42:37:613 - info: [debug] Socket data received (8192 bytes)
2014-10-07 09:42:37:613 - info: [debug] Socket data received (266 bytes)
2014-10-07 09:42:37:613 - info: [debug] Socket data being routed.
2014-10-07 09:42:37:613 - 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":320,"height":548},">":[{"UIAWindow":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"vali
2014-10-07 09:42:37:622 - info: [debug] Pushing command to appium work queue: "au.getElementByIndexPath('/0/1/5/1')"
2014-10-07 09:42:37:622 - info: [debug] Sending command to instruments: au.getElementByIndexPath('/0/1/5/1')
2014-10-07 09:42:38:501 - info: [debug] 
 2014-10-07 05:42:38 +0000 Debug: Got new command 4 from instruments: au.getElementByIndexPath('/0/1/5/1')
2014-10-07 09:42:38:502 - info: [debug] 
 2014-10-07 05:42:38 +0000 Debug: evaluating au.getElementByIndexPath('/0/1/5/1')
2014-10-07 09:42:38:503 - info: [debug] 
 2014-10-07 05:42:38 +0000 Debug: evaluation finished
2014-10-07 09:42:38:504 - info: [debug] 
 2014-10-07 05:42:38 +0000 Debug: Lookup returned [object UIAButton] with the name "Apple" (id: 0).
2014-10-07 09:42:38:505 - info: [debug] 
 2014-10-07 05:42:38 +0000 Debug: responding with:
2014-10-07 09:42:38:506 - info: [debug] 
 2014-10-07 05:42:38 +0000 Debug: Running system command #5: /usr/local/Cellar/node/0.10.32/bin/node /opt/appium/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /opt/appium/tmp/instruments_sock 2,{"status":0,"value":{"ELEMENT":"0"}}...
2014-10-07 09:42:38:554 - info: [debug] Socket data received (38 bytes)
2014-10-07 09:42:38:554 - info: [debug] Socket data being routed.
2014-10-07 09:42:38:554 - info: [debug] Got result from instruments: {"status":0,"value":{"ELEMENT":"0"}}
2014-10-07 09:42:38:555 - info: [debug] Pushing command to appium work queue: "au.tapById('0')"
2014-10-07 09:42:38:555 - info: [debug] Sending command to instruments: au.tapById('0')
2014-10-07 09:42:39:588 - info: [debug] 
 2014-10-07 05:42:39 +0000 Debug: Got new command 5 from instruments: au.tapById('0')
2014-10-07 09:42:39:589 - info: [debug] 
 2014-10-07 05:42:39 +0000 Debug: evaluating au.tapById('0')
2014-10-07 09:42:39:590 - info: [debug] 
 2014-10-07 05:42:39 +0000 Debug: target.frontMostApp().elements()[1].elements()[5].elements()[1].tap()
2014-10-07 09:42:39:861 - info: [debug] 
 2014-10-07 05:42:39 +0000 Debug: evaluation finished
2014-10-07 09:42:39:879 - info: [debug] 
 2014-10-07 05:42:39 +0000 Debug: responding with:
2014-10-07 09:42:39:897 - info: [debug] 
 2014-10-07 05:42:39 +0000 Debug: Running system command #6: /usr/local/Cellar/node/0.10.32/bin/node /opt/appium/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /opt/appium/tmp/instruments_sock 2,{"status":0,"value":""}...
2014-10-07 09:42:39:929 - info: [debug] Socket data received (25 bytes)
2014-10-07 09:42:39:929 - info: [debug] Socket data being routed.
2014-10-07 09:42:39:929 - info: [debug] Got result from instruments: {"status":0,"value":""}
2014-10-07 09:42:39:930 - info: [debug] Navigating to most recently opened webview
2014-10-07 09:42:39:931 - info: [debug] [REMOTE] Debugger socket connected to ::1:27753
2014-10-07 09:42:39:931 - info: [debug] [REMOTE] Sending connection key
2014-10-07 09:42:39:931 - info: [debug] [REMOTE] Sending _rpc_reportIdentifier: message to remote debugger
2014-10-07 09:42:39:932 - info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"6c3097b2-cf50-4422-875b-e9c842200b0a"},"__selector":"_rpc_reportIdentifier:"}
2014-10-07 09:42:40:195 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:40:195 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:40:196 - info: [debug] [REMOTE] {"__selector":"_rpc_reportSetup:","__argument":{"WIRSimulatorNameKey":"iPhone Simulator","WIRSimulatorProductVersionKey":"8.0","WIRSimulatorBuildKey":"12A365"}}
2014-10-07 09:42:40:196 - info: [debug] [REMOTE] Sim name: iPhone Simulator
2014-10-07 09:42:40:196 - info: [debug] [REMOTE] Sim build: 12A365
2014-10-07 09:42:40:196 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:40:197 - info: [debug] [REMOTE] {"__selector":"_rpc_reportConnectedApplicationList:","__argument":{"WIRApplicationDictionaryKey":{"PID:52487":{"WIRApplicationBundleIdentifierKey":"com.apple.mobilesafari","WIRApplicationNameKey":"Safari","WIRIsApplicationProxyKey":false,"WIRIsApplicationActiveKey":1,"WIRApplicationIdentifierKey":"PID:52487"},"PID:52495":{"WIRApplicationBundleIdentifierKey":"com.apple.WebKit.WebContent","WIRHostApplicationIdentifierKey":"PID:52487","WIRApplicationNameKey":"","WIRIsApplicationProxyKey":true,"WIRIsApplicationActiveKey":0,"WIRApplicationIdentifierKey":"PID:52495"}}}}
2014-10-07 09:42:40:197 - info: [debug] Found separate bundleId com.apple.WebKit.WebContent acting as proxy for com.apple.mobilesafari. Going to use its app ID key of PID:52495 instead
2014-10-07 09:42:40:197 - info: [debug] Using remote debugger app key: PID:52495
2014-10-07 09:42:40:197 - info: [debug] [REMOTE] Selecting app
2014-10-07 09:42:40:198 - info: [debug] [REMOTE] Sending _rpc_forwardGetListing: message to remote debugger
2014-10-07 09:42:40:198 - info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"6c3097b2-cf50-4422-875b-e9c842200b0a","WIRApplicationIdentifierKey":"PID:52495"},"__selector":"_rpc_forwardGetListing:"}
2014-10-07 09:42:40:200 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:40:200 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:40:201 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"PID:52495","WIRListingKey":{"1":{"WIRPageIdentifierKey":1,"WIRURLKey":"about:blank","WIRTitleKey":"","WIRTypeKey":"WIRTypeWeb"}}}}
2014-10-07 09:42:40:201 - info: [debug] Picking webview WEBVIEW_1
2014-10-07 09:42:40:201 - info: [debug] Attempting to set context to 'WEBVIEW_1'
2014-10-07 09:42:40:201 - info: [debug] [REMOTE] Selecting page 1 and forwarding socket setup
2014-10-07 09:42:40:201 - info: [debug] [REMOTE] Sending _rpc_forwardSocketSetup: message to remote debugger
2014-10-07 09:42:40:201 - info: [debug] [REMOTE] {"__argument":{"WIRApplicationIdentifierKey":"PID:52495","WIRConnectionIdentifierKey":"6c3097b2-cf50-4422-875b-e9c842200b0a","WIRSenderKey":"00aa577d-df2e-4daa-901c-9dab13f1ec5b","WIRPageIdentifierKey":1},"__selector":"_rpc_forwardSocketSetup:"}
2014-10-07 09:42:40:202 - info: [debug] [REMOTE] Set sender key
2014-10-07 09:42:40:202 - info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-10-07 09:42:40:209 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:40:209 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:40:209 - info: [debug] [REMOTE] got applicationSentData response
2014-10-07 09:42:40:209 - info: [debug] [REMOTE] Enabled activity on page
2014-10-07 09:42:40:210 - info: [debug] [REMOTE] Unregistering from page readiness notifications
2014-10-07 09:42:40:210 - info: [debug] Device launched! Ready for commands
2014-10-07 09:42:40:210 - info: [debug] Setting command timeout to the default of 60 secs
2014-10-07 09:42:40:210 - info: [debug] Appium session started with sessionId d84a9c2a-9311-4687-aa71-c9142901f1a4
2014-10-07 09:42:40:211 - info: <-- POST /wd/hub/session 303 61170.972 ms - 9 
2014-10-07 09:42:40:367 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:40:368 - info: [debug] [REMOTE] got applicationSentData response
2014-10-07 09:42:40:368 - info: [debug] [REMOTE] Frame navigated, unloading page
2014-10-07 09:42:40:368 - info: [debug] [REMOTE] Frame navigated, calling cbs
2014-10-07 09:42:40:395 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:40:395 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"PID:52487","WIRListingKey":{}}}
2014-10-07 09:42:40:396 - info: [debug] [REMOTE] New page listing did not match the app id we are currently using, ignoring
2014-10-07 09:42:40:396 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:40:397 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"PID:52495","WIRListingKey":{"1":{"WIRConnectionIdentifierKey":"6c3097b2-cf50-4422-875b-e9c842200b0a","WIRURLKey":"http://www.apple.com/","WIRTitleKey":"","WIRPageIdentifierKey":1,"WIRTypeKey":"WIRTypeWeb"},"2":{"WIRPageIdentifierKey":2,"WIRTypeKey":"WIRTypeJavaScript","WIRTitleKey":"JSContext"}}}}
2014-10-07 09:42:40:397 - info: [debug] Remote debugger notified us of a new page listing
2014-10-07 09:42:40:397 - info: [debug] We have new pages, going to select page 2
2014-10-07 09:42:40:398 - info: [debug] [REMOTE] Selecting page 2 and forwarding socket setup
2014-10-07 09:42:40:398 - info: [debug] [REMOTE] Sending _rpc_forwardSocketSetup: message to remote debugger
2014-10-07 09:42:40:398 - info: [debug] [REMOTE] {"__argument":{"WIRApplicationIdentifierKey":"PID:52495","WIRConnectionIdentifierKey":"6c3097b2-cf50-4422-875b-e9c842200b0a","WIRSenderKey":"00aa577d-df2e-4daa-901c-9dab13f1ec5b","WIRPageIdentifierKey":2},"__selector":"_rpc_forwardSocketSetup:"}
2014-10-07 09:42:40:399 - info: [debug] [REMOTE] Set sender key
2014-10-07 09:42:40:399 - info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-10-07 09:42:40:412 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:40:413 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"PID:52495","WIRListingKey":{"1":{"WIRConnectionIdentifierKey":"6c3097b2-cf50-4422-875b-e9c842200b0a","WIRURLKey":"http://www.apple.com/","WIRTitleKey":"","WIRPageIdentifierKey":1,"WIRTypeKey":"WIRTypeWeb"},"2":{"WIRConnectionIdentifierKey":"6c3097b2-cf50-4422-875b-e9c842200b0a","WIRTypeKey":"WIRTypeJavaScript","WIRTitleKey":"JSContext","WIRPageIdentifierKey":2}}}}
2014-10-07 09:42:40:413 - info: [debug] Remote debugger notified us of a new page listing
2014-10-07 09:42:40:413 - info: [debug] We're in the middle of selecting a page, ignoring
2014-10-07 09:42:40:415 - info: --> POST /wd/hub/session/d84a9c2a-9311-4687-aa71-c9142901f1a4/url {"url":"http://ya.ru/"}
2014-10-07 09:42:40:416 - info: [debug] [REMOTE] Navigating to new URL: http://ya.ru/
2014-10-07 09:42:40:416 - info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-10-07 09:42:40:618 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:40:618 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"PID:52495","WIRListingKey":{"1":{"WIRConnectionIdentifierKey":"6c3097b2-cf50-4422-875b-e9c842200b0a","WIRURLKey":"http://www.apple.com/","WIRTitleKey":"Apple","WIRPageIdentifierKey":1,"WIRTypeKey":"WIRTypeWeb"}}}}
2014-10-07 09:42:40:618 - info: [debug] Remote debugger notified us of a new page listing
2014-10-07 09:42:40:618 - info: [debug] We're in the middle of selecting a page, ignoring
2014-10-07 09:42:41:153 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:41:153 - info: [debug] [REMOTE] got applicationSentData response
2014-10-07 09:42:41:153 - info: [debug] [REMOTE] Got a blank data response from debugger
2014-10-07 09:42:41:418 - info: [debug] [REMOTE] Waiting for frame navigated...
2014-10-07 09:42:41:468 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:41:468 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:41:468 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"PID:52495","WIRListingKey":{"1":{"WIRConnectionIdentifierKey":"6c3097b2-cf50-4422-875b-e9c842200b0a","WIRURLKey":"http://www.apple.com/","WIRTitleKey":"Apple","WIRPageIdentifierKey":1,"WIRTypeKey":"WIRTypeWeb"}}}}
2014-10-07 09:42:41:469 - info: [debug] Remote debugger notified us of a new page listing
2014-10-07 09:42:41:469 - info: [debug] We're in the middle of selecting a page, ignoring
2014-10-07 09:42:41:920 - info: [debug] [REMOTE] Frame navigated, calling cbs
2014-10-07 09:42:41:920 - info: [debug] [REMOTE] Waiting for dom...
2014-10-07 09:42:41:920 - info: [debug] [REMOTE] Page loaded, verifying whether ready through readyState
2014-10-07 09:42:42:031 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:42:031 - info: [debug] [REMOTE] got applicationSentData response
2014-10-07 09:42:42:031 - info: [debug] [REMOTE] Page loaded, verifying whether ready through readyState
2014-10-07 09:42:42:031 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:42:031 - info: [debug] [REMOTE] got applicationSentData response
2014-10-07 09:42:42:031 - info: [debug] [REMOTE] Got a blank data response from debugger
2014-10-07 09:42:42:239 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:42:239 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:42:42:240 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"PID:52495","WIRListingKey":{"1":{"WIRConnectionIdentifierKey":"6c3097b2-cf50-4422-875b-e9c842200b0a","WIRURLKey":"http://www.apple.com/","WIRTitleKey":"Apple","WIRPageIdentifierKey":1,"WIRTypeKey":"WIRTypeWeb"}}}}
2014-10-07 09:42:42:240 - info: [debug] Remote debugger notified us of a new page listing
2014-10-07 09:42:42:240 - info: [debug] We're in the middle of selecting a page, ignoring
2014-10-07 09:42:42:533 - info: [debug] [REMOTE] Checking document readyState
2014-10-07 09:42:42:533 - info: [debug] [REMOTE] Sending javascript command
2014-10-07 09:42:42:533 - info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-10-07 09:43:40:408 - info: [debug] Didn't get a new command in 60 secs, shutting down...
2014-10-07 09:43:40:408 - info: Shutting down appium session
2014-10-07 09:43:40:409 - info: [debug] Stopping ios
2014-10-07 09:43:40:409 - info: [debug] Destroying instruments client socket.
2014-10-07 09:43:40:409 - info: [debug] Closing socket server.
2014-10-07 09:43:40:410 - info: [debug] Instruments socket server was closed
2014-10-07 09:43:40:410 - info: [debug] Sending sigterm to instruments
2014-10-07 09:43:40:413 - info: [debug] 
 2014-10-07 05:43:40 +0000 Stopped: Script was stopped by the user
2014-10-07 09:43:40:426 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:43:40:427 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationDisconnected:","__argument":{"WIRApplicationBundleIdentifierKey":"com.apple.mobilesafari","WIRApplicationNameKey":"Safari","WIRIsApplicationProxyKey":false,"WIRIsApplicationActiveKey":1,"WIRApplicationIdentifierKey":"PID:52487"}}
2014-10-07 09:43:40:428 - info: [debug] [REMOTE] Receiving data from remote debugger
2014-10-07 09:43:40:428 - info: [debug] [REMOTE] {"__selector":"_rpc_applicationDisconnected:","__argument":{"WIRApplicationBundleIdentifierKey":"com.apple.WebKit.WebContent","WIRHostApplicationIdentifierKey":"PID:52487","WIRApplicationNameKey":"","WIRIsApplicationProxyKey":true,"WIRIsApplicationActiveKey":0,"WIRApplicationIdentifierKey":"PID:52495"}}
2014-10-07 09:43:40:826 - info: [debug] 
 Instruments Trace Complete (Duration : 93.609154s; Output : /opt/appium/tmp/appium-instruments/instrumentscli0.trace)
2014-10-07 09:43:40:843 - info: [debug] [INSTSERVER] Instruments exited with code 0
2014-10-07 09:43:40:843 - info: [debug] Cleaning up after instruments exit
2014-10-07 09:43:40:843 - info: [debug] Stopping iOS log capture
2014-10-07 09:43:40:843 - info: [debug] [REMOTE] Executing 'execute_script' atom in default context
2014-10-07 09:43:40:843 - info: [debug] [REMOTE] Sending javascript command
2014-10-07 09:43:40:844 - info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-10-07 09:43:40:844 - info: [debug] Running ios sim reset flow
2014-10-07 09:43:40:844 - info: [debug] Killing the simulator process
2014-10-07 09:43:40:844 - info: [debug] Killall iOS Simulator
2014-10-07 09:43:40:847 - info: [debug] Killing any other simulator daemons
```

@jlipps I'm not sure if it is the most suitable place to add a check