Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

E2E testing with PhantomJS #189

Closed
simax opened this issue Oct 28, 2013 · 9 comments
Closed

E2E testing with PhantomJS #189

simax opened this issue Oct 28, 2013 · 9 comments

Comments

@simax
Copy link

simax commented Oct 28, 2013

Can anyone list the steps required to get end to end testing set up with karma/protractor etc. My e2e tests run fine with chrome but I can't seem to find any good documentation on setup using PhantomJs.

@jfroom
Copy link
Contributor

jfroom commented Oct 31, 2013

While the case has been made that PhantomJS isn't ideally a choice for E2E - I also would like to figure this out for testing completeness. According to this SO thread linked below, PhantomJS is pretty quick and could be used as a first round E2E smoke test. I suppose there is also the possibility there is an end user purpose for consuming an web app programmatically (or in an automated server side fashion) with PhantomJS.

Being a bit new with these tools, I've been floundering the past 24 hours getting Phantom set up with Protractor/Selenium - it is not a trivial solution. I am pretty close to getting it to work, but for some reason my Protractor-Jasmine-PhantomJS tests are currently running without executing the it blocks - so no actual tests are running (Finished in 0.2 seconds. 7 tests, 0 assertions, 0 failures).

I would list my notes on how I got this far in the process, but I don't want to clutter the thread with a half baked solution . If I can resolve this, I'll come back. In the mean time, am hoping someone with more experience has insights. I'm going to circle over to a few other threads where folks appear to have been gotten latest Phantom working and cross post this link to see if anyone can enlighten.

This was referenced Oct 31, 2013
@jfroom
Copy link
Contributor

jfroom commented Oct 31, 2013

Also @simax , I think this thread should only address Protractor. Any Karma related info/issues should be posted to that repository. FWIW, I didn't encounter any issues with Karma and PhantomJS following this documentation: http://karma-runner.github.io/0.10/config/browsers.html

@jfroom
Copy link
Contributor

jfroom commented Oct 31, 2013

Once there's a process it seems like one of the MD docs should be updated with how to get PhantomJS running so the insights aren't hidden away in these forums. Better yet, it may be worth integrating directly into Protractor like Karma did - imho.

@juliemr
Copy link
Member

juliemr commented Oct 31, 2013

I just added https://github.com/angular/protractor/blob/master/docs/browser-setup.md which details how to set up browser configuration. This would be the perfect place to outline how to use PhantomJS. Happy to take pull requests updating that documentation!

jfroom added a commit to jfroom/protractor that referenced this issue Nov 6, 2013
- Add notes about PhantomJS setup
- May require further documentation..

Contributes to angular#189
@jfroom
Copy link
Contributor

jfroom commented Nov 6, 2013

Sorry about all the commits. Still learning git.

@Hardcode37
Copy link

@jfroom

I have followed the steps laid out but I can't get protractor/selenium/phantomjs to work.

I have installed phantomjs globally
I setup my protractor config as seen below

// An example configuration file.
exports.config = {
    // The address of a running selenium server. If this is specified,
    // seleniumServerJar and seleniumPort will be ignored.
    seleniumAddress: 'http://localhost:4444/wd/hub',

    // A base URL for your application under test. Calls to protractor.get()
    // with relative paths will be prepended with this.
    baseUrl: 'http://localhost:52254',
    //baseUrl: 'http://localhost:56776',
    // Capabilities to be passed to the webdriver instance.
    capabilities: {
        'browserName': 'phantomjs',
    },


    // Spec patterns are relative to the current working directly when
    // protractor is called.
    specs: ['' +
       ..... Scenarios ommited
    ],

    // Options to be passed to Jasmine-node.
    jasmineNodeOpts: {
        //onComplete: false,//use function to teardown database and rebuild etc....
        isVerbose: false,
        showColors: true, 
        includeStackTrace: true
    },
};

in my tests I have

var util = require('util');
var protractor = require('protractor');
require('protractor/jasminewd');

    describe('E2E Tests', function() {
    var ptor, driver;

    describe('Scenario 1', function () {
        ptor = protractor.getInstance();
        ptor.get('http://localhost:52254/#/instantquote');

        beforeEach(function () {
            ptor = protractor.getInstance();
            //driver = ptor.driver;
            driver = new webdriver.Builder().withCapabilities(webdriver.Capabilities.phantomjs()).build();
        }, 30000);

        ... Tests ommited ...

    });
});

at present I start all test manually from command line, starting up phantomjs first

phantomjs

then selenium

java -jar selenium-server-standalone-2.35.0.jar

and finally the protractor tests

start node_modules.bin\protractor.cmd E2EConf.js

my stacktrace is

16:33:37.125 INFO - Executing: [new session: {browserName=phantomjs}] at URL: /session)
16:33:37.126 INFO - Creating a new session for Capabilities [{browserName=phantomjs}]
16:33:37.128 INFO - executable: C:\Users\ianrichards\AppData\Roaming\npm\phantomjs
16:33:37.129 INFO - port: 42439
16:33:37.129 INFO - arguments: [--webdriver=42439, --webdriver-logfile=C:\project\e2etests\phantomjsdriver.log]
16:33:37.129 INFO - environment: {}
16:33:57.130 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '2.35.0', revision: 'c916b9d', time: '2013-08-12 15:42:01'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_45'
Driver info: driver.version: unknown
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.openqa.selenium.remote.server.DefaultSession.execute(DefaultSession.java:176)
at org.openqa.selenium.remote.server.DefaultSession.(DefaultSession.java:112)
at org.openqa.selenium.remote.server.DefaultSession.createSession(DefaultSession.java:89)
at org.openqa.selenium.remote.server.DefaultDriverSessions.newSession(DefaultDriverSessions.java:89)
at org.openqa.selenium.remote.server.handler.NewSession.handle(NewSession.java:63)
at org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConfig.java:205)
at org.openqa.selenium.remote.server.JsonHttpRemoteConfig.handleRequest(JsonHttpRemoteConfig.java:192)
at org.openqa.selenium.remote.server.DriverServlet.handleRequest(DriverServlet.java:201)
at org.openqa.selenium.remote.server.DriverServlet.doPost(DriverServlet.java:167)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.openqa.selenium.remote.server.DriverServlet.service(DriverServlet.java:139)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.openqa.jetty.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at org.openqa.jetty.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:677)
at org.openqa.jetty.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1526)
at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1479)
at org.openqa.jetty.http.HttpServer.service(HttpServer.java:914)
at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
at org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986)
at org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
at org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:243)
at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Caused by: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '2.35.0', revision: 'c916b9d', time: '2013-08-12 15:42:01'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_45'
Driver info: driver.version: unknown
at org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructor(DefaultDriverFactory.java:72)
at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:56)
at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:215)
at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:169)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructor(DefaultDriverFactory.java:62)
... 8 more
Caused by: org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '2.35.0', revision: 'c916b9d', time: '2013-08-12 15:42:01'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_45'
Driver info: driver.version: PhantomJSDriver
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:216)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:111)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:115)
at org.openqa.selenium.phantomjs.PhantomJSDriver.(PhantomJSDriver.java:107)
at org.openqa.selenium.phantomjs.PhantomJSDriver.(PhantomJSDriver.java:96)
... 13 more
Caused by: org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '2.35.0', revision: 'c916b9d', time: '2013-08-12 15:42:01'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_45'
Driver info: driver.version: PhantomJSDriver
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:165)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:62)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:527)
... 18 more
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:42439/status] to be available after 20001 ms
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:104)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:163)
... 20 more
Caused by: com.google.common.util.concurrent.UncheckedTimeoutException: java.util.concurrent.TimeoutException
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:143)
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:79)
... 21 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(Unknown Source)
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:130)
... 22 more
16:33:57.155 WARN - Exception: null

Could you confirm that I have taken the right steps in getting this running or have I done something wrong.

juliemr pushed a commit that referenced this issue Nov 7, 2013
- Add notes about PhantomJS setup.
- May require further documentation.

Contributes to #189
@jfroom
Copy link
Contributor

jfroom commented Nov 7, 2013

@Hardcode37 Not sure if I'll be of much help, but I noticed that I only
needed to launch phantomjs (with --webdriver PORT) or selenium on the
command line. Not both. Also, I did not need to redefine the driver in the
spec with phantom capabilities since it was passed in on the config.
However, I welcome anyone else's observations.

As an aside, I was still never able to get phantom to connect to my local
website properly (I gave up for now, other duties call..).

Hope this helps more than it confuses!

On Thu, Nov 7, 2013 at 10:52 AM, Hardcode37 notifications@github.comwrote:

@jfroom https://github.com/jfroom

I have followed the steps laid out but I can't get
protractor/selenium/phantomjs to work.

I have installed phantomjs globally
I setup my protractor config as seen below

// An example configuration file.
exports.config = {
// The address of a running selenium server. If this is specified,
// seleniumServerJar and seleniumPort will be ignored.
seleniumAddress: 'http://localhost:4444/wd/hub',

// A base URL for your application under test. Calls to protractor.get()
// with relative paths will be prepended with this.
baseUrl: 'http://localhost:52254',
//baseUrl: 'http://localhost:56776',
// Capabilities to be passed to the webdriver instance.
capabilities: {
    'browserName': 'phantomjs',
},


// Spec patterns are relative to the current working directly when
// protractor is called.
specs: ['' +
   ..... Scenarios ommited
],

// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
    //onComplete: false,//use function to teardown database and rebuild etc....
    isVerbose: false,
    showColors: true,
    includeStackTrace: true
},

};

in my tests I have

var util = require('util');
var protractor = require('protractor');
require('protractor/jasminewd');

describe('E2E Tests', function() {
var ptor, driver;

describe('Scenario 1', function () {
    ptor = protractor.getInstance();
    ptor.get('http://localhost:52254/#/instantquote');

    beforeEach(function () {
        ptor = protractor.getInstance();
        //driver = ptor.driver;
        driver = new webdriver.Builder().withCapabilities(webdriver.Capabilities.phantomjs()).build();
    }, 30000);

    ... Tests ommited ...

});

});

at present I start all test manually from command line, starting up
phantomjs first

phantomjs

then selenium

java -jar selenium-server-standalone-2.35.0.jar

and finally the protractor tests

start node_modules.bin\protractor.cmd E2EConf.js

my stacktrace is

16:33:37.125 INFO - Executing: [new session: {browserName=phantomjs}] at
URL: /session)
16:33:37.126 INFO - Creating a new session for Capabilities
[{browserName=phantomjs}]
16:33:37.128 INFO - executable:
C:\Users\ianrichards\AppData\Roaming\npm\phantomjs
16:33:37.129 INFO - port: 42439
16:33:37.129 INFO - arguments: [--webdriver=42439,
--webdriver-logfile=C:\project\e2etests\phantomjsdriver.log]
16:33:37.129 INFO - environment: {}
16:33:57.130 WARN - Exception thrown
java.util.concurrent.ExecutionException:
org.openqa.selenium.WebDriverException:
java.lang.reflect.InvocationTargetException
Build info: version: '2.35.0', revision: 'c916b9d', time: '2013-08-12
15:42:01'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1',
java.version: '1.7.0_45'
Driver info: driver.version: unknown
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at
org.openqa.selenium.remote.server.DefaultSession.execute(DefaultSession.java:176)
at
org.openqa.selenium.remote.server.DefaultSession.(DefaultSession.java:112)
at
org.openqa.selenium.remote.server.DefaultSession.createSession(DefaultSession.java:89)
at
org.openqa.selenium.remote.server.DefaultDriverSessions.newSession(DefaultDriverSessions.java:89)
at
org.openqa.selenium.remote.server.handler.NewSession.handle(NewSession.java:63)
at
org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConfig.java:205)
at
org.openqa.selenium.remote.server.JsonHttpRemoteConfig.handleRequest(JsonHttpRemoteConfig.java:192)
at
org.openqa.selenium.remote.server.DriverServlet.handleRequest(DriverServlet.java:201)
at
org.openqa.selenium.remote.server.DriverServlet.doPost(DriverServlet.java:167)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.openqa.selenium.remote.server.DriverServlet.service(DriverServlet.java:139)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.openqa.jetty.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at
org.openqa.jetty.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:677)
at
org.openqa.jetty.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1526)
at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1479)
at org.openqa.jetty.http.HttpServer.service(HttpServer.java:914)
at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
at org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986)
at org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
at
org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:243)
at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Caused by: org.openqa.selenium.WebDriverException:
java.lang.reflect.InvocationTargetException
Build info: version: '2.35.0', revision: 'c916b9d', time: '2013-08-12
15:42:01'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1',
java.version: '1.7.0_45'
Driver info: driver.version: unknown
at
org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructor(DefaultDriverFactory.java:72)
at
org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:56)
at
org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:215)
at
org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1)
at java.util.concurrent.FutureTask.run(Unknown Source)
at
org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:169)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructor(DefaultDriverFactory.java:62)
... 8 more
Caused by: org.openqa.selenium.remote.UnreachableBrowserException: Could
not start a new session. Possible causes are invalid address of the remote
server or browser start-up failure.
Build info: version: '2.35.0', revision: 'c916b9d', time: '2013-08-12
15:42:01'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1',
java.version: '1.7.0_45'
Driver info: driver.version: PhantomJSDriver
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
at
org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:216)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:111)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:115)
at org.openqa.selenium.phantomjs.PhantomJSDriver.(PhantomJSDriver.java:107)
at org.openqa.selenium.phantomjs.PhantomJSDriver.(PhantomJSDriver.java:96)
... 13 more
Caused by: org.openqa.selenium.WebDriverException: Timed out waiting for
driver server to start.
Build info: version: '2.35.0', revision: 'c916b9d', time: '2013-08-12
15:42:01'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1',
java.version: '1.7.0_45'
Driver info: driver.version: PhantomJSDriver
at
org.openqa.selenium.remote.service.DriverService.start(DriverService.java:165)
at
org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:62)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:527)
... 18 more
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out
waiting for [http://localhost:42439/status] to be available after 20001 ms
at
org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:104)
at
org.openqa.selenium.remote.service.DriverService.start(DriverService.java:163)
... 20 more
Caused by: com.google.common.util.concurrent.UncheckedTimeoutException:
java.util.concurrent.TimeoutException
at
com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:143)
at
org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:79)
... 21 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(Unknown Source)
at
com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:130)
... 22 more
16:33:57.155 WARN - Exception: null

Could you confirm that I have taken the right steps in getting this
running or have I done something wrong.


Reply to this email directly or view it on GitHubhttps://github.com//issues/189#issuecomment-27983204
.

@ranjanbhambroo
Copy link

@juliemr I have a Vm on my mac which has centOS installed. When i run my tests using phantomjs capabilities they are running fine. I have a separate centOS host which i access remotely on which i have installed protractor. But when i run my tests on the host remotely i get the following error:

/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1542
throw error;
^
UnknownError: null
at new bot.Error (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:109:18)
at Object.bot.response.checkResponse (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/response.js:106:9)
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:133:24
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1178:15
at webdriver.promise.ControlFlow.runInNewFrame_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1438:20)
at notify (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:328:12)
at notifyAll (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:297:7)
at fulfill (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:402:7)
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1178:15
at webdriver.promise.ControlFlow.runInNewFrame_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1438:20)
==== async task ====
WebDriver.createSession()
at Function.webdriver.WebDriver.acquireSession_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:130:49)
at Function.webdriver.WebDriver.createSession (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:110:30)
at Builder.build (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/builder.js:105:20)
at runJasmineTests (/usr/local/lib/node_modules/protractor/lib/runner.js:247:47)
at /usr/local/lib/node_modules/protractor/lib/runner.js:312:5
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1178:15
at webdriver.promise.ControlFlow.runInNewFrame_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1438:20)
at notify (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:328:12)
at notifyAll (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:297:7)

Not sure why this is happening when the configuration is same on both the VM and the linux host.

I will appreciate any insights on this.

@juliemr
Copy link
Member

juliemr commented Dec 19, 2013

Hi folks,

Closing this issue as the specific problem here was addressed - please open a new issue or ask on stack overflow if there are continuing problems.

@juliemr juliemr closed this as completed Dec 19, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants