Safari not opening in real device

Hi,

I’m using Mac El Capitan, Xcode 7.2, iOS 9.2 and have downloaded the appium source from git.
Run the command ./reset.sh --ios --real-safari
Started the server by running main.js.

Ios web kit proxy is running. When i try to execute, the test I get the error as Failed to start an Appium session, err was: Error: Error. Could not find button to launch Safari. Make sure you are using the latest version of SafariLauncher that appium is using

Safari Launcher opens and navigates to apple.com. however, it does not navigate to actual website am trying to navigate to.

Below is console log:

info: Welcome to Appium v1.4.16 (REV bce540be133b45b82229477d941d42598ef5ecae)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: [debug] Non-default server args: {“udid”:“1bda2e8098a73cb8c02871f1b5ce3b2c7a145ab5”}
info: Console LogLevel: debug
info: --> POST /wd/hub/session {“desiredCapabilities”:{“appiumServerPort”:“4723”,“appium-version”:“1.4.13”,“newCommandTimeout”:“120”,“platformVersion”:“9.2”,“appiumServerIP”:“localhost”,“browserName”:“safari”,“platformName”:“iOS”,“udid”:“1bda2e8098a73cb8c02871f1b5ce3b2c7a145ab5”,“deviceName”:“iPhone”}}
info: Client User-Agent string: Apache-HttpClient/4.3.6 (java 1.5)
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. : appiumServerPort, appium-version, appiumServerIP
info: [debug] Configuring Safari session
info: [debug] Using local .zip from command line: /Users/srinidhim/appium/build/SafariLauncher/SafariLauncher.zip
info: [debug] Copying local zip to tmp dir
info: [debug] /Users/srinidhim/appium/build/SafariLauncher/SafariLauncher.zip copied to /var/folders/cx/s22lkk7s0tg0w734wxs_nrvm0000gp/T/116012-2766-v515c4/appium-app.zip
info: [debug] Unzipping /var/folders/cx/s22lkk7s0tg0w734wxs_nrvm0000gp/T/116012-2766-v515c4/appium-app.zip
info: [debug] Testing zip archive: /var/folders/cx/s22lkk7s0tg0w734wxs_nrvm0000gp/T/116012-2766-v515c4/appium-app.zip
info: [debug] Zip archive tested clean
info: [debug] Unzip successful
info: [debug] Using locally extracted app: /var/folders/cx/s22lkk7s0tg0w734wxs_nrvm0000gp/T/116012-2766-v515c4/SafariLauncher.app
info: [debug] Creating new appium session 1b1c342d-6ce8-4432-859f-264c679c76af
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Auto-detecting iOS udid…
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /var/folders/cx/s22lkk7s0tg0w734wxs_nrvm0000gp/T/116012-2766-v515c4/SafariLauncher.app/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /var/folders/cx/s22lkk7s0tg0w734wxs_nrvm0000gp/T/116012-2766-v515c4/SafariLauncher.app/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Getting bundle ID from app
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/srinidhim/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/usr/local/bin/node",“commandProxyClientPath”:"/Users/srinidhim/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. D…ot manually modify!
info: [debug] Dynamic bootstrap path: /Users/srinidhim/Library/Application Support/appium/bootstrap/bootstrap-81c2cd00aa945def.js
info: [debug] Creating or overwritting dynamic bootstrap: /Users/srinidhim/Library/Application Support/appium/bootstrap/bootstrap-81c2cd00aa945def.js
info: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog
info: [debug] Creating iDevice object with udid 1bda2e8098a73cb8c02871f1b5ce3b2c7a145ab5
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 real device with UDID 1bda2e8098a73cb8c02871f1b5ce3b2c7a145ab5
info: On xcode 7.0, instruments-without-delay does not work, skippinginstruments-without-delay
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 1bda2e8098a73cb8c02871f1b5ce3b2c7a145ab5 com.safariLauncher.safariLauncher -e UIASCRIPT “/Users/srinidhim/Library/Application Support/appium/bootstrap/bootstrap-81c2cd00aa945def.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And launch timeouts (in ms): {“global”:90000}
info: [debug] [INST STDERR] 2016-01-12 14:40:45.301 instruments[2781:45458] WebKit Threading Violation - initial use of WebKit from a secondary thread.
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] 2016-01-12 09:10:47 +0000 Debug: evaluation finished
info: [debug] [INST] 2016-01-12 09:10:47 +0000 Debug: responding with:
info: [debug] [INST] 2016-01-12 09:10:47 +0000 Debug: Running system command #1: /usr/local/bin/node /Users/srinidhim/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] Not setting initial orientation because we’re on SafariLauncher
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] 2016-01-12 09:10:48 +0000 Debug: Got new command 1 from instruments: au.mainApp().getTreeForXML()
info: [debug] [INST] 2016-01-12 09:10:48 +0000 Debug: evaluating au.mainApp().getTreeForXML()
info: [debug] [INST] 2016-01-12 09:10:49 +0000 Debug: evaluation finished
info: [debug] [INST] 2016-01-12 09:10:49 +0000 Debug: responding with:":true,“visible”:false,“hint”:null,“path”:"/0/0",“x”:0,“y”:0,“width”:187.5,“height”:333.5},">":[]}},{“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”:187.5,“height”:333.5},">":[{“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”:187.5,“height”:32.25},">":[]}},{“UIAButton”:{"@":{“name”:“URL”,“label”:“Address”,“value”:“‎apple.com”,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:“Double tap to show controls”,“path”:"/0/1/1",“x”:4.75,“y”:12.25,“width”:178,“height”:14.5},">":[{“UIAElement”:{"@":{“name”:“URL”,“label”:“Address”,“value”:“10%”,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:“Double tap to show controls”,“path”:"/0/1/1/0",“x”:5.75,“y”:12.25,“width”:176,“height”:14.5},">":[]}},{“UIAButton”:{"@":{“name”:“StopButton”,“label”:“stop”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/1/1",“x”:168.25,“y”:12.25,“width”:14.5,“height”:14.5},">":[]}}]}},{“UIAButton”:{"@":{“name”:“Cancel”,“label”:“Cancel”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/2",“x”:189.75,“y”:12.25,“width”:28,“height”:14.5},">":[{“UIAStaticText”:{"@":{“name”:“Cancel”,“label”:“Cancel”,“value”:“Cancel”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/2/0",“x”:189.75,“y”:14,“width”:28,“height”:10.75},">":[]}}]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/3",“x”:0,“y”:30.75,“width”:187.5,“height”:1.25},">":[]}},{“UIAScrollView”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/4",“x”:0,“y”:0,“width”:187.5,“height”:333.5},">":[{“UIAScrollView”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/4/0",“x”:0,“y”:0,“width”:187.5,“height”:333.5},">":[{“UIAWebView”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/4/0/0",“x”:0,“y”:32,“width”:187.5,“height”:829.5},">":[{“UIALink”:{"@":{“name”:“Open Menu”,“label”:“Open Menu”,“value”:"",“dom”:{“id”:“ac-gn-menuanchor-open”},“enabled”:true,“valid”:true,“visible”:true,“hint”:"",“path”:"/0/1/4/0/0/0",“x”:0,“y”:67,“width”:43,“height”:46},">":[{“UIALink”:{"@":{“name”:“Open Menu”,“label”:“Open Menu”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:true,“hint”:"",“path”:"/0/1/4/0/0/0/0",“x”:0,“y”:67,“width”:43,“height”:46},">":[{“UIAStaticText”:{"@":{“name”:“Open Menu”,“label”:“Open Menu”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:true,“hint”:"",“path”:"/0/1/4/0/0/0/0/0",“x”:0,“y”:67,“width”:43,“height”:46},">":[]}}]}}]}},{“UIALink”:{"@":{“name”:“Apple”,“label”:“Apple”,“value”:"",“dom”:{“id”:“ac-gn-firstfocus-small”},“enabled”:true,“valid”:true,“visible”:true,“hint”:"",“path”:"/0/1/4/0/0/1",“x”:167,“y”:76,“width”:47,“height”:22},">":[{“UIALink”:{"@":{“name”:“Apple”,“label”:“Apple”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:true,“hint”:"",“path”:"/0/1/4/0/0/1/0",“x”:167,“y”:76,“width”:47,“height”:22},">":[{“UIAStaticText”:{"@":{“name”:“Apple”,“label”:“Apple”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:true,“hint”:"",“path”:"/0/1/4/0/0/1/0/0",“x”:167,“y”:76,“width”:47,“height”:22},">":[]}}]}}]}},{“UIAButton”:{"@":{“name”:“Shopping Bag”,“label”:“Shopping Bag”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:true,“hint”:"",“path”:"/0/1/4/0/0/2",“x”:325,“y”:64,“width”:50,“height”:48},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/3",“x”:0,“y”:64,“width”:375,“height”:391},">":[]}},{“UIAStaticText”:{"@":{“name”:“Start something new.”,“label”:“Start something new.”,“value”:“1”,“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/4",“x”:0,“y”:135,“width”:287,“height”:39},">":[]}},{“UIAStaticText”:{"@":{“name”:“See what artists are creating with Apple products.”,“label”:“See what artists are creating with Apple products.”,“value”:“2”,“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/5",“x”:0,“y”:188,“width”:207,“height”:50},">":[]}},{“UIALink”:{"@":{“name”:“View the gallery ”,“label”:“View the gallery ”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/6",“x”:0,“y”:246,“width”:100,“height”:17},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/7",“x”:0,“y”:64,“width”:375,“height”:391},">":[]}},{“UIAStaticText”:{"@":{“name”:“iPad Pro”,“label”:“iPad Pro”,“value”:“1”,“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/8",“x”:0,“y”:130,“width”:145,“height”:52},">":[]}},{“UIAStaticText”:{"@":{“name”:“Thin. Light. Epic.”,“label”:“Thin. Light. Epic.”,“value”:“2”,“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/9",“x”:0,“y”:180,“width”:167,“height”:31},">":[]}},{“UIALink”:{"@":{“name”:“Learn more ”,“label”:“Learn more ”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/10",“x”:0,“y”:219,“width”:73,“height”:17},">":[]}},{“UIALink”:{"@":{“name”:“Watch the film ”,“label”:“Watch the film ”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/11",“x”:0,“y”:219,“width”:101,“height”:17},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:true,“hint”:"",“path”:"/0/1/4/0/0/12",“x”:0,“y”:64,“width”:375,“height”:391},">":[]}},{“UIAStaticText”:{"@":{“name”:“Apple TV”,“label”:“Apple TV”,“value”:“1”,“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/13",“x”:0,“y”:267,“width”:125,“height”:40},">":[]}},{“UIAStaticText”:{"@":{“name”:“The future of television is here.”,“label”:“The future of television is here.”,“value”:“2”,“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/14",“x”:69,“y”:319,“width”:237,“height”:64},">":[]}},{“UIALink”:{"@":{“name”:“Learn more ”,“label”:“Learn more ”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:true,“hint”:"",“path”:"/0/1/4/0/0/15",“x”:95,“y”:390,“width”:73,“height”:18},">":[]}},{“UIALink”:{"@":{“name”:“Watch the film ”,“label”:“Watch the film ”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:true,“hint”:"",“path”:"/0/1/4/0/0/16",“x”:180,“y”:390,“width”:101,“height”:18},">":[]}},{“UIALink”:{"@":{“name”:“Apple Watch. To wear it is to love it.”,“label”:“Apple Watch. To wear it is to love it.”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/17",“x”:0,“y”:64,“width”:0,“height”:0},">":[{“UIAStaticText”:{"@":{“name”:“Apple Watch. To wear it is to love it.”,“label”:“Apple Watch. To wear it is to love it.”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/17/0",“x”:0,“y”:64,“width”:0,“height”:0},">":[]}}]}},{“UIALink”:{"@":{“name”:“iPhone 6s. The only thing that’s changed is everything.”,“label”:“iPhone 6s. The only thing that’s changed is everything.”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/18",“x”:0,“y”:64,“width”:0,“height”:0},">":[{“UIAStaticText”:{"@":{“name”:“iPhone 6s. The only thing that’s changed is everything.”,“label”:“iPhone 6s. The only thing that’s changed is everything.”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/18/0",“x”:0,“y”:64,“width”:0,“height”:0},">":[]}}]}},{“UIALink”:{"@":{“name”:“iOS 9.3 Preview.
info: [debug] [INST] A better experience every day. And night.”,“label”:“iOS 9.3 Preview. A better experience every day. And night.”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/19",“x”:0,“y”:64,“width”:0,“height”:0},">":[{“UIAStaticText”:{"@":{“name”:“iOS 9.3 Preview. A better experience every day. And night.”,“label”:“iOS 9.3 Preview. A better experience every day. And night.”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/19/0",“x”:0,“y”:64,“width”:0,“height”:0},">":[]}}]}},{“UIALink”:{"@":{“name”:“MacBook. Light. Years ahead.”,“label”:“MacBook. Light. Years ahead.”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/20",“x”:0,“y”:64,“width”:0,“height”:0},">":[{“UIAStaticText”:{"@":{“name”:“MacBook. Light. Years ahead.”,“label”:“MacBook. Light. Years ahead.”,“value”:"",“dom”:{“id”:""},“enabled”:true,“valid”:true,“visible”:false,“hint”:"",“path”:"/0/1/4/0/0/20/0",“x”:0,“y”:64,“width”:0,“height”:0},">":[]}}]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/21",“x”:3.4381410633e-314,“y”:2.0908547e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/22",“x”:3.4381410633e-314,“y”:2.1067913e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/23",“x”:3.4381410633e-314,“y”:2.122728e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/24",“x”:3.4381410633e-314,“y”:2.1386644e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/25",“x”:3.4381410633e-314,“y”:2.154601e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/26",“x”:3.4381410633e-314,“y”:2.1705376e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/27",“x”:3.4381410633e-314,“y”:2.186474e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/28",“x”:3.4381410633e-314,“y”:2.202411e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/29",“x”:3.4381410633e-314,“y”:2.2183473e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/30",“x”:3.4381410633e-314,“y”:2.234284e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/31",“x”:3.4381410633e-314,“y”:2.2502205e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/32",“x”:3.4381410633e-314,“y”:2.266157e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/33",“x”:3.4381410633e-314,“y”:2.2820937e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/34",“x”:3.4381410633e-314,“y”:2.29803e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/35",“x”:3.4381410633e-314,“y”:2.313967e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/36",“x”:3.4381410633e-314,“y”:2.3299034e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/37",“x”:3.4381410633e-314,“y”:2.34584e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/38",“x”:3.4381410633e-314,“y”:2.3617766e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/39",“x”:3.4381410633e-314,“y”:2.377713e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/40",“x”:3.4381410633e-314,“y”:2.3936497e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/41",“x”:3.4381410633e-314,“y”:2.4095863e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/42",“x”:3.4381410633e-314,“y”:2.425523e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/43",“x”:3.4381410633e-314,“y”:2.4414595e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/44",“x”:3.4381410633e-314,“y”:2.457396e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/45",“x”:3.4381410633e-314,“y”:2.4733326e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/46",“x”:3.4381410633e-314,“y”:2.489269e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/47",“x”:3.4381410633e-314,“y”:2.505206e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/48",“x”:3.4381410633e-314,“y”:2.5211424e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:
info: [debug] [INST] null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/49",“x”:3.4381410633e-314,“y”:2.537079e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/50",“x”:3.4381410633e-314,“y”:2.5530155e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/51",“x”:3.4381410633e-314,“y”:2.568952e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/52",“x”:3.4381410633e-314,“y”:2.5848887e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/53",“x”:3.4381410633e-314,“y”:2.6008253e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/54",“x”:3.4381410633e-314,“y”:2.616762e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/55",“x”:3.4381410633e-314,“y”:2.6326985e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}},{“UIALink”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1/4/0/0/56",“x”:3.4381410633e-314,“y”:2.648635e-317,“width”:2.447896661e-314,“height”:3.438141077e-314},">":[]}}]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/4/0/1",“x”:369.5,“y”:67,“width”:2.5,“height”:208.5},">":[]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/4/0/2",“x”:3,“y”:617.5,“width”:369,“height”:2.5},">":[]}}]}}]}},{“UIAToolbar”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/5",“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/5/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/5/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/5/2",“x”:85,“y”:625,“width”:42,“height”:40},">":[]}},{“UIAButton”:{"@":{“name”:“Share”,“label”:“Share”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/5/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/5/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/5/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},">":[{“UIAButton”:{"@":{“name”:“Back to SafariLauncher”,“label”:“Back to SafariLauncher”,“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”:141,“height”:20},">":[]}},{“UIAElement”:{"@":{“name”:“No SIM”,“label”:“No SIM”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“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”:153,“y”:0,“width”:41,“height”:20},">":[]}},{“UIAElement”:{"@":{“name”:“2:40 PM”,“label”:“2:40 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”:164,“y”:0,“width”:50,“height”:20},">":[]}},{“UIAElement”:{"@":{“name”:“3 of 3 Wi-Fi bars”,“label”:“3 of 3 Wi-Fi bars”,“value”:“SSID”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“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”:199,“y”:0,“width”:13,“height”:20},">":[]}},{“UIAElement”:{"@":{“name”:“Network connection in progress”,“label”:“Network connection in progress”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“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/4",“x”:218,“y”:0,“width”:10,“height”:20},">":[]}},{“UIAElement”:{"@":{“name”:“Network connection in progress”,“label”:“Network connection in progress”,“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/5",“x”:321,“y”:0,“width”:10,“height”:20},">":[]}},{“UIAElement”:{"@":{“name”:“100% battery power, On AC Power”,“label”:“100% battery power, On AC 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/6",“x”:337,“y”:0,“width”:33,“height”:20},">":[]}}]}}]}}]}}}
info: [debug] [INST] 2016-01-12 09:10:49 +0000 Debug: Running system command #2: /usr/local/bin/node /Users/srinidhim/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”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0",“x”:0,“y”…
info: [debug] Socket data received (8162 bytes)
info: [debug] Socket data received (8190 bytes)
info: [debug] Socket data received (7194 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”:0,“width”:375,“height”:667},">":[{“UIAWindow”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid
info: [debug] On Safari Launcher. Tapping button to launch Safari
info: [debug] Waiting up to 0ms for condition
info: [debug] Pushing command to appium work queue: “au.getElementByAccessibilityId(‘launch safari’)”
info: [debug] Sending command to instruments: au.getElementByAccessibilityId(‘launch safari’)
info: [debug] [INST] 2016-01-12 09:10:50 +0000 Debug: Got new command 2 from instruments: au.getElementByAccessibilityId(‘launch safari’)
info: [debug] [INST] 2016-01-12 09:10:50 +0000 Debug: evaluating au.getElementByAccessibilityId(‘launch safari’)
info: [debug] [INST] 2016-01-12 09:10:50 +0000 Debug: evaluation finished
info: [debug] [INST] 2016-01-12 09:10:50 +0000 Debug: responding with:
info: [debug] [INST] 2016-01-12 09:10:50 +0000 Debug: Running system command #3: /usr/local/bin/node /Users/srinidhim/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 1179ms. Timing out.
error: Error. Could not find button to launch Safari. Make sure you are using the latest version of SafariLauncher that appium is using
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Error. Could not find button to launch Safari. Make sure you are using the latest version of SafariLauncher that appium is using
info: [debug] Error: Error. Could not find button to launch Safari. Make sure you are using the latest version of SafariLauncher that appium is using
at [object Object]. (/Users/srinidhim/appium/lib/devices/ios/safari.js:70:17)
at [object Object]. (/Users/srinidhim/appium/lib/devices/common.js:77:12)
at [object Object].iOSController.handleFindCb (/Users/srinidhim/appium/lib/devices/ios/ios-controller.js:314:5)
at [object Object]. (/Users/srinidhim/appium/lib/devices/ios/ios-controller.js:139:14)
at next (/Users/srinidhim/appium/node_modules/async/lib/async.js:798:43)
at /Users/srinidhim/appium/node_modules/async/lib/async.js:32:16
at [object Object].exports.respond (/Users/srinidhim/appium/lib/devices/common.js:28:9)
at [object Object]. (/Users/srinidhim/appium/lib/devices/ios/ios.js:1529:18)
at getResultAndSendNext (/Users/srinidhim/appium/node_modules/appium-uiauto/lib/command-proxy.js:146:20)
at Socket. (/Users/srinidhim/appium/node_modules/appium-uiauto/lib/command-proxy.js:88:7)
at emitNone (events.js:72:20)
at Socket.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:905:12)
at doNTCallback2 (node.js:441:9)
at process._tickDomainCallback (node.js:396:17)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Error. Could not find button to launch Safari. Make sure you are using the latest version of SafariLauncher that appium is using)”,“origValue”:“Error. Could not find button to launch Safari. Make sure you are using the latest version of SafariLauncher that appium is using”},“sessionId”:null}
info: <-- POST /wd/hub/session 500 10788.685 ms - 378

Thanks for the help.

Hi Cema_N,
I believe, there is a compatibility issue between your Appium and Safari browser. So please upgrade the Safari browser to the latest and try again.

Regards,
@Abdul_Sathar_Beigh

Hi @Abdul_Sathar_Beigh,

Thank you for your response. Are you suggesting that I upgrade the safari browser on the phone?

I do not get any updates to be installed for the phone. I have also taken the latest version of Safari Launcher from git and built it and placed the safari launcher.zip in build folder of appium.

Still facing the same issue.

Thank you for help.

Does anyone know how to fix this?