dalekjs / dalek-browser-chrome

[unmaintained] Chrome Browser bindings for DalekJS
MIT License
15 stars 9 forks source link

chrome browser testing doesn't run and reports "ERROR: Error: socket hang up" #23

Open ericclack opened 7 years ago

ericclack commented 7 years ago

Hi, I'm trying to run through the Getting Started guide here: http://dalekjs.com/pages/getStarted.html

I'm running on Mac 10.11.6 with recent npm, node, etc.

Here's what I'm trying with errors report following command...

$ npm run browsertest

> node-react-proto@0.0.3 browsertest /Users/eric/Code/JavaScript/node-react-proto
> dalek browsertest/test-homepage.js -b chrome

Running tests
Running Browser: Google Chrome
>> ERROR: Error: socket hang up
>> ERROR: Error: socket hang up

Here's my test case...

module.exports = {
    'Test homepage': function (test) {
        test
            .open('http://www.google.com/')
            .assert.title().to.contain('Prototype')
            .done();
    }
};

The browser does pop up, but with 'data:,' in the URL bar and no pages loaded.

Let me know if you need any additional info.

truedat101 commented 7 years ago

@davicitoafc did you find a solution to this problem? It all used to work, about a year ago, and when we tested recently on a new system, it was not working w/ Chrome. Did you try with a diff browser?

itsMattShull commented 7 years ago

I'm having this problem as well. Just started today.

itsMattShull commented 7 years ago

firefox doesn't work and chrome:canary doesn't work.

bpeacock commented 7 years ago

Same problem here, it worked several months ago when I first wrote the tests but now I get a socket error.

beechit commented 7 years ago

same problem here on a fresh install.

jamesespie commented 7 years ago

I had this issue. A manual update of chromedriver, rather than the version npm installed, seemed to get around / fix. (download from google - https://sites.google.com/a/chromium.org/chromedriver/downloads)

bpeacock commented 7 years ago

For reference, this file is located under node_modules/dalek-browser-chrome/lib/bin/chromedriver

lkkushan101 commented 6 years ago

Hi Guys, I had the same issue. But managed to copy the latest chrome driver to node_modules/dalek-browser-chrome/lib/bin/chromedriver. Worked perfectly.

truedat101 commented 6 years ago

We switched to nightwatchjs. Works fine.