Git Product home page Git Product logo

Comments (7)

garris avatar garris commented on August 15, 2024

Hi fvena, This error is usually caused by a dependency issue. Can you verify that Phantom and Casper are installed correctly?

$ phantomjs -v
> 1.9.8

and

$ casperjs --version
> 1.1.0-beta3

from backstopjs.

fvena avatar fvena commented on August 15, 2024

Yes, I have those versions, but get the following message:

$ phantomjs -v

1.9.8

$ casperjs --version

1.1.0-beta3
Unsafe JavaScript attempt to access frame with URL about:blank from frame with URL file:///Users/fvena/.node/lib/node_modules/casperjs/bin/bootstrap.js. Domains, protocols and ports must match.

from backstopjs.

garris avatar garris commented on August 15, 2024

Ok. 3 requests...

Can you try running gulp genConfig and post the full output.

Can you post the <root>/backstop.json file as well.

And also, please post the full output for gulp reference.

from backstopjs.

fvena avatar fvena commented on August 15, 2024

$ gulp genConfig

Using gulpfile ~/Sites/temp/myCoolProject/bower_components/backstopjs/gulpfile.js
Starting 'genConfig'...
Finished 'genConfig' after 16 ms

backstop.json

{
    "viewports" : [
        {
         "name": "phone",
         "viewport": {"width": 320, "height": 480}
        }
        ,{
         "name": "tablet_v",
         "viewport": {"width": 568, "height": 1024}
        }
        ,{
         "name": "tablet_h",
         "viewport": {"width": 1024, "height": 768}
        }
    ]
    ,"grabConfigs" : [
        {
            "testName":"http://getbootstrap.com"
            ,"url":"http://getbootstrap.com"
            ,"hideSelectors": [
            ]
            ,"removeSelectors": [
                "#carbonads-container"
            ]
            ,"selectors":[
                "header"
                ,"main"
                ,"body .bs-docs-featurette:nth-of-type(1)"
                ,"body .bs-docs-featurette:nth-of-type(2)"
                ,"footer"
                ,"body"
            ]
        }
    ]
}

$ gulp reference

Using gulpfile ~/Sites/temp/myCoolProject/bower_components/backstopjs/gulpfile.js
Starting 'clean'...
bitmaps_reference was cleaned.
Starting 'bless'...
Finished 'clean' after 12 ms
Finished 'bless' after 17 ms
Starting 'reference'...
gulp.run() has been deprecated. Use task dependencies or gulp.watch task triggering instead.
Starting 'init'...

BackstopJS needs to update bower_components, please hang on...

Finished 'init' after 4.56 ms
Starting 'test'...

Generating reference files.

Finished 'test' after 2.24 ms
reference has run.
Finished 'reference' after 8.12 ms

events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:1001:11)
at Process.ChildProcess._handle.onexit (child_process.js:792:34)

from backstopjs.

garris avatar garris commented on August 15, 2024

Thanks for that. It looks like node is not able to spawn out Casper or Phantom. What OS are you on?

Just to test this, you could add this log stmt at line 199 of gulpfile.js...

console.log( 'Ready to run ' + tests + ' with ' + casperProcess + '.' )

image

from backstopjs.

fvena avatar fvena commented on August 15, 2024

Thank you very much for your help, my OS is OSX Yosemite 10.10.1, this is what I get:

Ready to run capture/genBitmaps.js with casperjs.

from backstopjs.

garris avatar garris commented on August 15, 2024

So far, all the points look good. I wonder if it's permissions? Can you try running sudo gulp test If that doesn't work, please try reinstalling in a test directory right on your desktop. Please send the terminal output. Also, what version is your node.js version?

from backstopjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.