Cannot get mobile web on iOS 7 on physical device to work

553 views
Skip to first unread message

Roel Kerkhofs

unread,
Apr 28, 2014, 4:02:49 AM4/28/14
to appium-...@googlegroups.com
Hello,

I'm stuck with getting Appium to work with iOS (physical device) so I can test a site, and I'm out of ideas to try. Any ideas or suggestions are welcome. (I have appium working for android on a device btw)

The problem:

  • The safarilauncher app gets launched and correctly launches Safari. 
  • But after safari is launched, my test (goToBol) is not executed. Instead, safarilauncer is launched an additional three times. 
  • The closest thing I could find for an errormessage is: info: [INST] 2014-04-28 06:52:08 +0000 Fail: Could not start script, target application is not frontmost. (full Appium feedback below)

My setup:

MacOS 10.9.2
XCode 5.1.1
iPhone 5 iOS 7.0
Appium 0.18.0

My testscript

package exampleTest;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.*;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import java.net.URL;
import org.openqa.selenium.remote.CapabilityType;

public class TestiOSsafariDirect {
        private WebDriver driver;

        @Before
        public void setUp() throws Exception {
            // set up appium: specify the path to the app folder from your computer
            DesiredCapabilities capabilities = new DesiredCapabilities();
            capabilities.setCapability("device","iPhone");
            capabilities.setCapability(CapabilityType.VERSION, "7.1");
            capabilities.setCapability("app", "com.bol.SafariLauncher");
            capabilities.setCapability("-U", "8bba7b0ea1df2a1e8944b5272170535dc32f366b");
            driver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
        }

        @After
        public void tearDown() throws Exception {
            driver.quit();
        }

        @Test
        public void goToBol(){
            driver.get("https://m.test2.bol.com");
        }
}

Appium output

debug: Appium request initiated at /wd/hub/session


info: App is an iOS bundle, will attempt to run as pre-existing


debug: Request received with params: {"desiredCapabilities":{"app":"com.bol.SafariLauncher","device":"iPhone","version":"7.1","-U":"8bba7b0ea1df2a1e8944b5272170535dc32f366b"}}


info: Creating new appium session bfa3122e-db8a-4b53-97d6-0ca8b2abc9af

info: Removing any remaining instruments sockets

info: Cleaned up instruments socket /tmp/instruments_sock

info: Setting Xcode folder


info: Setting Xcode version


info: Setting iOS SDK Version


info: iOS SDK Version set to 7.1


info: Detecting automation tracetemplate


info: Not auto-detecting udid, running on sim


debug: Creating instruments


info: Localizable.strings is not currently supported when using real devices.

info: Not setting locale because we're using a real device

info: Not setting iOS and app preferences since we're on a real device


info: Starting iOS device log capture via idevicesyslog


debug: Real device specified but no ipa or app path, assuming bundle ID is on device


info: Not setting device type since we're connected to a device


debug: Starting instruments


info: Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments


info: [INSTSERVER] Instruments socket server started at /tmp/instruments_sock

info: Attempting to run app on real device with UDID 8bba7b0ea1df2a1e8944b5272170535dc32f366b

info: Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -w 8bba7b0ea1df2a1e8944b5272170535dc32f366b com.bol.SafariLauncher -e UIASCRIPT /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/uiauto/bootstrap.js -e UIARESULTSPATH /tmp/appium-instruments

info: And extra without-delay env: {}

info: And launch timeouts (in ms): {"global":90000}


info: [INST] 2014-04-28 06:51:50 +0000 Start: Bootstrapping uiauto

       


info: [INST] 2014-04-28 06:51:52 +0000 Start: Got user: rkerkhofs

       


info: [INST] 2014-04-28 06:51:53 +0000 Start: Not using settings file.

       


info: [INST] 2014-04-28 06:51:53 +0000 Start: isVerbose:false

       


info: [INST] 2014-04-28 06:51:56 +0000 Start: Using node at: /usr/local/bin/node

       


info: [INST] 2014-04-28 06:52:08 +0000 Fail: Could not start script, target application is not frontmost.

       


info: [INST] Instruments Trace Complete (Duration : 20.199697s; Output : /Applications/Appium.app/Contents/Resources/node_modules/appium/instrumentscli90.trace)

       


info: [INSTSERVER] Instruments exited with code 0


info: Killall instruments


info: Attempting to retry launching instruments, this is retry #1

info: Killall iPhoneSimulator

Any thoughts or suggestions are much welcomed!


Roel

Rameshwar Juptimath

unread,
Apr 28, 2014, 6:31:32 AM4/28/14
to appium-...@googlegroups.com
Do u want to launch Safari browser on you iPhone?

Roel Kerkhofs

unread,
Apr 28, 2014, 6:55:04 AM4/28/14
to appium-...@googlegroups.com
Yes, indeed. I do this by using the safarilauncher app. 

Op maandag 28 april 2014 12:31:32 UTC+2 schreef Rameshwar Juptimath:

Rameshwar Juptimath

unread,
Apr 28, 2014, 7:12:40 AM4/28/14
to appium-...@googlegroups.com
then I feel that you "app" capability should be "safari":

 capabilities.setCapability("app", "Safari");

Roel Kerkhofs

unread,
Apr 28, 2014, 7:30:23 AM4/28/14
to appium-...@googlegroups.com
I am under the impression that you have to use the safarilauncher app in order to be able to launch Safari on a device (see https://github.com/budhash/SafariLauncher)



Op maandag 28 april 2014 13:12:40 UTC+2 schreef Rameshwar Juptimath:

Jonathan Lipps

unread,
Apr 28, 2014, 12:47:00 PM4/28/14
to Roel Kerkhofs, appium-...@googlegroups.com
If you want to test on real safari, you have to actually use "app": "safari" as the cap. That triggers Appium to use its built in safarilauncher, and it knows that it's supposed to ignore the instruments crash and keep the remote debugger connection open.

--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/d/optout.

Roel Kerkhofs

unread,
Apr 29, 2014, 1:41:27 AM4/29/14
to appium-...@googlegroups.com, Roel Kerkhofs
Hi Jonathan,

When I give "safari" as "app", I get the following errormessage:

org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Unable to install [/var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/114329-11809-ewkkh7/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app] to device with id [8bba7b0ea1df2a1e8944b5272170535dc32f366b]. Error [Error: Command failed: ]) (WARNING: The server did not provide any stacktrace information)

The app is preinstalled on the device. Any ideas?


Op maandag 28 april 2014 18:47:00 UTC+2 schreef Jonathan Lipps:

Rameshwar Juptimath

unread,
Apr 29, 2014, 2:35:57 AM4/29/14
to appium-...@googlegroups.com, Roel Kerkhofs
start appium server with --no-reset flag.

If you are using appium GUI the you can do this in the preferences.

Roel Kerkhofs

unread,
Apr 29, 2014, 2:45:48 AM4/29/14
to appium-...@googlegroups.com, Roel Kerkhofs
Thanks for your suggestion. Unfortunately this did not do the trick.

Is there any way to get more info or logging on why appium is unable to install/start the safarilauncher app/?

Roel

Op dinsdag 29 april 2014 08:35:57 UTC+2 schreef Rameshwar Juptimath:

Isaac Murchie

unread,
Apr 29, 2014, 6:59:48 PM4/29/14
to Roel Kerkhofs, appium-...@googlegroups.com
When you get the `SessionNotCreatedException` what is in the Appium log? 

Roel Kerkhofs

unread,
Apr 30, 2014, 1:47:12 AM4/30/14
to appium-...@googlegroups.com, Roel Kerkhofs
Hi Isaac, I see the following (from start of Appium to the error in my test)

/Users/rkerkhofs/.bash_profile: line 5: ~./profile: No such file or directory


info: Welcome to Appium v0.18.0 (REV 17af02875e50682d6f1bdbd7885dad6e54e1c08a)


info: Appium REST http interface listener started on 127.0.0.1:4723

info: socket.io started


info: Non-default server args: {"udid":"8bba7b0ea1df2a1e8944b5272170535dc32f366b","address":"127.0.0.1","keepArtifacts":true,"noReset":true,"merciful":true,"safari":true}


debug: Appium request initiated at /wd/hub/status


debug: Request received with params: {}


info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.18.0","revision":"17af02875e50682d6f1bdbd7885dad6e54e1c08a"}}}


GET /wd/hub/status 200 6ms - 144b


debug: Appium request initiated at /wd/hub/session


warn: [DEPRECATED] The device capability has been deprecated and will be removed.  Please use the platformName capability instead.


debug: Request received with params: {"desiredCapabilities":{"app":"safari","device":"iPhone","version":"7.1","-U":"8bba7b0ea1df2a1e8944b5272170535dc32f366b"}}


warn: [DEPRECATED] The version capability has been deprecated and will be removed.  Please use the platformVersion capability instead.

info: Configuring Safari session


info: Using local .zip from desired caps: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/SafariLauncher/SafariLauncher.zip

info: Copying local zip to tmp dir


info: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/SafariLauncher/SafariLauncher.zip copied to /var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/114330-16063-53zwh6/appium-app.zip


info: Unzipping /var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/114330-16063-53zwh6/appium-app.zip

info: Testing zip archive: /var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/114330-16063-53zwh6/appium-app.zip


info: Zip archive tested clean


info: Unzip successful


info: Using locally extracted app: /var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/114330-16063-53zwh6/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app

info: Creating new appium session 99416475-448c-4173-88e7-7b1931f43d81

info: Removing any remaining instruments sockets

info: Cleaned up instruments socket /tmp/instruments_sock


info: Setting Xcode folder

info: Setting Xcode version


info: Setting iOS SDK Version


info: iOS SDK Version set to 7.1


info: Detecting automation tracetemplate


debug: Creating instruments


info: Not auto-detecting udid, running on sim

warn: Could not parse plist file at /var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/114330-16063-53zwh6/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app/en.lproj/Localizable.strings

info: Not setting locale because we're using a real device

info: Not setting iOS and app preferences since we're on a real device

info: Starting iOS device log capture via idevicesyslog


debug: Appium request initiated at /wd/hub/status


info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.18.0","revision":"17af02875e50682d6f1bdbd7885dad6e54e1c08a"}},"sessionId":"99416475-448c-4173-88e7-7b1931f43d81"}


debug: Request received with params: {}


GET /wd/hub/status 200 2ms - 199b


info: Not setting device type since we're connected to a device


info: Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 8bba7b0ea1df2a1e8944b5272170535dc32f366b --bundle com.bytearc.SafariLauncher


info: Installing app using cmd: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id 8bba7b0ea1df2a1e8944b5272170535dc32f366b --bundle /var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/114330-16063-53zwh6/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app


info: Cleaning up appium session


error: Failed to start an Appium session, err was: Error: Unable to install [/var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/114330-16063-53zwh6/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app] to device with id [8bba7b0ea1df2a1e8944b5272170535dc32f366b]. Error [Error: Command failed: ]


info: Error: Unable to install [/var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/114330-16063-53zwh6/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app] to device with id [8bba7b0ea1df2a1e8944b5272170535dc32f366b]. Error [Error: Command failed: ]

    at /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/common.js:130:10

    at ChildProcess.exithandler (child_process.js:641:7)

    at ChildProcess.EventEmitter.emit (events.js:98:17)

    at maybeClose (child_process.js:743:16)

    at Socket.<anonymous> (child_process.js:956:11)

    at Socket.EventEmitter.emit (events.js:95:17)

    at Pipe.close (net.js:465:12)


info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Unable to install [/var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/114330-16063-53zwh6/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app] to device with id [8bba7b0ea1df2a1e8944b5272170535dc32f366b]. Error [Error: Command failed: ])","origValue":"Unable to install [/var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/114330-16063-53zwh6/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app] to device with id [8bba7b0ea1df2a1e8944b5272170535dc32f366b]. Error [Error: Command failed: ]"},"sessionId":null}

POST /wd/hub/session 500 3684ms - 650b


Op woensdag 30 april 2014 00:59:48 UTC+2 schreef Isaac Murchie:

Isaac Murchie

unread,
Apr 30, 2014, 2:20:44 PM4/30/14
to Roel Kerkhofs, appium-...@googlegroups.com
This is an issue with Fruitstrap, it seems. Can you try the suggestion from this thread: https://groups.google.com/forum/#!topic/appium-discuss/kDpApPbhpOU

Cheers,
Isaac.

Roel Kerkhofs

unread,
May 1, 2014, 2:22:31 AM5/1/14
to appium-...@googlegroups.com, Roel Kerkhofs
Executing the Fruitstrap from the command line gives the same error message as in that thread:

rkerkhofs$ /usr/local/lib/node_modules/appium/build/fruitstrap/fruitstrap install --id 8bba7b0ea1df2a1e8944b5272170535dc32f366b --bundle com.bol.SafariLauncher

Assertion failed: (access(app_path, F_OK) == 0), function main, file fruitstrap.c, line 718.

Abort trap: 6


Op woensdag 30 april 2014 20:20:44 UTC+2 schreef Isaac Murchie:

Roel Kerkhofs

unread,
May 1, 2014, 2:26:47 AM5/1/14
to appium-...@googlegroups.com, Roel Kerkhofs
Also, the Fruitstrap check to see whether the app is already installed does work. I do not understand why it is trying to install the app in the first place. See:

$ /usr/local/lib/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 8bba7b0ea1df2a1e8944b5272170535dc32f366b --bundle com.bol.SafariLauncher

[....] Waiting for iOS device to be connected

found device id

[  0%] Found device (8bba7b0ea1df2a1e8944b5272170535dc32f366b), beginning check

App is installed!

[100%] Check completed com.bol.SafariLauncher


Op woensdag 30 april 2014 20:20:44 UTC+2 schreef Isaac Murchie:
This is an issue with Fruitstrap, it seems. Can you try the suggestion from this thread: https://groups.google.com/forum/#!topic/appium-discuss/kDpApPbhpOU

Cheers,
Isaac.

Roel Kerkhofs

unread,
May 1, 2014, 2:36:58 AM5/1/14
to appium-...@googlegroups.com, Roel Kerkhofs
sorry for the monologue, but I understand now why the manual check and the appium-executed check differed: I built the safarilauncher with my own bundle id. I should have used appium's bundleID instead: com.bytearc.SafariLauncher

This leads to a new error message, about which more later...

Op donderdag 1 mei 2014 08:26:47 UTC+2 schreef Roel Kerkhofs:

Roel Kerkhofs

unread,
May 1, 2014, 3:02:42 AM5/1/14
to appium-...@googlegroups.com
So, I'm stuck with the "application not frontmost" errormessage again (see logging below)

Also, the logging says that device is deprecated and that I have to use "platformName" "iOS" instead. But this will not allow me to use "app" "safai" because this is not a complete path.

Outstanding questions:
  1. Is it at all possible to test sites on native Safari on iOS 7.1?
  2. should I use device or platformName
    1. If platformName, what should the app parameter be?
  3. What's up with the application not frontmost error
Logging on the frontmost error:

/Users/rkerkhofs/.bash_profile: line 5: ~./profile: No such file or directory


info: Welcome to Appium v0.18.0 (REV 17af02875e50682d6f1bdbd7885dad6e54e1c08a)


info: Appium REST http interface listener started on 127.0.0.1:4723

info: socket.io started


info: Non-default server args: {"udid":"8bba7b0ea1df2a1e8944b5272170535dc32f366b","address":"127.0.0.1","keepArtifacts":true,"noReset":true,"merciful":true,"safari":true}


debug: Appium request initiated at /wd/hub/status


debug: Request received with params: {}


info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.18.0","revision":"17af02875e50682d6f1bdbd7885dad6e54e1c08a"}}}


GET /wd/hub/status 200 5ms - 144b


debug: Appium request initiated at /wd/hub/status


info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.18.0","revision":"17af02875e50682d6f1bdbd7885dad6e54e1c08a"}}}


debug: Request received with params: {}


GET /wd/hub/status 200 2ms - 144b


debug: Appium request initiated at /wd/hub/session


debug: Request received with params: {"desiredCapabilities":{"app":"safari","device":"iPhone","version":"7.1","-U":"8bba7b0ea1df2a1e8944b5272170535dc32f366b"}}


warn: [DEPRECATED] The device capability has been deprecated and will be removed.  Please use the platformName capability instead.


warn: [DEPRECATED] The version capability has been deprecated and will be removed.  Please use the platformVersion capability instead.

info: Configuring Safari session

info: Using local .zip from desired caps: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/SafariLauncher/SafariLauncher.zip


info: Copying local zip to tmp dir

info: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/SafariLauncher/SafariLauncher.zip copied to /var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/11441-20825-1phsxsu/appium-app.zip


info: Unzipping /var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/11441-20825-1phsxsu/appium-app.zip

info: Testing zip archive: /var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/11441-20825-1phsxsu/appium-app.zip


info: Zip archive tested clean


info: Unzip successful


info: Using locally extracted app: /var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/11441-20825-1phsxsu/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app

info: Creating new appium session 652724bf-a5ab-4f8e-a212-91d93dcb77d7

info: Removing any remaining instruments sockets

info: Cleaned up instruments socket /tmp/instruments_sock

info: Setting Xcode folder


info: Setting Xcode version


info: Setting iOS SDK Version


info: iOS SDK Version set to 7.1


info: Detecting automation tracetemplate


info: Not auto-detecting udid, running on sim


debug: Creating instruments


warn: Could not parse plist file at /var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/11441-20825-1phsxsu/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app/en.lproj/Localizable.strings

info: Not setting locale because we're using a real device

info: Not setting iOS and app preferences since we're on a real device

info: Starting iOS device log capture via idevicesyslog


debug: Appium request initiated at /wd/hub/status


info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.18.0","revision":"17af02875e50682d6f1bdbd7885dad6e54e1c08a"}},"sessionId":"652724bf-a5ab-4f8e-a212-91d93dcb77d7"}


debug: Request received with params: {}


GET /wd/hub/status 200 1ms - 199b


info: Not setting device type since we're connected to a device


info: Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 8bba7b0ea1df2a1e8944b5272170535dc32f366b --bundle com.bytearc.SafariLauncher


debug: Starting instruments


info: Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments


info: [INSTSERVER] Instruments socket server started at /tmp/instruments_sock

info: Attempting to run app on real device with UDID 8bba7b0ea1df2a1e8944b5272170535dc32f366b

info: Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -w 8bba7b0ea1df2a1e8944b5272170535dc32f366b /var/folders/vq/9g1c3prx2zd0yryq36h3167c0000gp/T/11441-20825-1phsxsu/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app -e UIASCRIPT /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/uiauto/bootstrap.js -e UIARESULTSPATH /tmp/appium-instruments

info: And extra without-delay env: {}

info: And launch timeouts (in ms): {"global":90000}


info: [INST] 2014-05-01 06:55:43 +0000 Start: Bootstrapping uiauto

       


info: [INST] 2014-05-01 06:55:45 +0000 Start: Got user: rkerkhofs

       


info: [INST] 2014-05-01 06:55:46 +0000 Start: Not using settings file.

       


info: [INST] 2014-05-01 06:55:46 +0000 Start: isVerbose:false

       


info: [INST] 2014-05-01 06:55:49 +0000 Start: Using node at: /usr/local/bin/node

       


info: [INST] 2014-05-01 06:56:01 +0000 Fail: Could not start script, target application is not frontmost.

       


info: [INST] Instruments Trace Complete (Duration : 20.163944s; Output : /Applications/Appium.app/Contents/Resources/node_modules/appium/instrumentscli104.trace)

       


info: [INSTSERVER] Instruments exited with code 0


info: Cleaning up after instruments exit

info: Not worrying about instruments exit since we're using SafariLauncher

info: Instruments launched. Starting poll loop for new commands.

info: Not setting bootstrap config because we're on SafariLauncher

info: Not setting initial orientation because we're on SafariLauncher


info: Navigating to most recently opened webview


error: uncaughtException: connect ECONNREFUSED date=Thu May 01 2014 08:56:08 GMT+0200 (CEST), pid=20825, uid=502, gid=20, cwd=/Applications/Appium.app/Contents/Resources/node_modules/appium, execPath=/Applications/Appium.app/Contents/Resources/node/bin/node, version=v0.10.26, argv=[/Applications/Appium.app/Contents/Resources/node/bin/node, /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/server/main.js, --address, 127.0.0.1, --port, 4723, --udid, 8bba7b0ea1df2a1e8944b5272170535dc32f366b, --no-reset, --keep-artifacts, --safari], rss=48177152, heapTotal=35255040, heapUsed=21127688, loadavg=[1.9580078125, 1.99951171875, 1.9228515625], uptime=673642, trace=[column=11, file=net.js, function=errnoException, line=904, method=null, native=false, column=19, file=net.js, function=Object.afterConnect [as oncomplete], line=895, method=afterConnect [as oncomplete], native=false], stack=[Error: connect ECONNREFUSED,     at errnoException (net.js:904:11),     at Object.afterConnect [as oncomplete] (net.js:895:19)]

Sergio Neves Barros

unread,
May 1, 2014, 6:50:34 AM5/1/14
to appium-...@googlegroups.com
Roel,

Did you have a read through the documentation:

Appium will automatically detect (e.g. using the com.bytearc.SafariLauncher bundle-id) if the safari launcher is installed. 

If you have an old version please remove it. The latest one only has a 2 second delay and will detect the instruments crash and allow the remote debugger to take over. Also , make sure you have the ios-webkit-debug-proxy running.

Have a look through the link and see if that helps.

Success en laat maar weten of het gelukt is ;)

Sergio

Sergio Neves Barros

unread,
May 1, 2014, 6:53:23 AM5/1/14
to appium-...@googlegroups.com
What i meant to add, if it detects that it is not installed it will automatically install it. The app is built locally by running the appium reset.sh with the arguments --ios --real-safari.

Sergio Neves Barros

unread,
May 1, 2014, 7:02:20 AM5/1/14
to appium-...@googlegroups.com, Roel Kerkhofs
--bundle com.bol.SafariLauncher, needs be the app location for it to work. --bundle /home/myApp.app

Only for uninstall and isinstalled do you pass the bundle id. However the argument is always --bundle.

Sergio

Banu younus

unread,
Aug 6, 2014, 7:50:06 AM8/6/14
to appium-...@googlegroups.com
Hi,

Did you got any solutions as I am getting the same issue
Reply all
Reply to author
Forward
0 new messages