Comments (7)
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.
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.
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.
$ 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.
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 + '.' )
from backstopjs.
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.
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)
- Optimizing Environment Comparison to Prevent Redundant Runs
- Will there be a tagged version on Dockerhub for version 6.3.6? HOT 2
- Issue: Backstop test pass, even with the timeout error HOT 1
- Puppeteer Delay is not supported
- `scenario.misMatchThreshold` is ignored HOT 2
- `requireSameDimensions` property is not working HOT 1
- How to View snapshot comparisons when running backstop js in GH CICD workflows?
- Failed to launch the browser process when running inside of docker container HOT 3
- Request for Node Module Update to Enable Multiple Screenshot Support (createBitmaps.js, runPuppet.js) HOT 3
- Test errors, but there is no difference in the snapshots when observed with the naked eye HOT 2
- Ready event seems to be unreliable HOT 1
- Unreliable font loading causes difference between test and reference HOT 4
- Values of requireSameDimensions and misMatchThreshold are ignored
- Thank you ! What a nice tools this is. HOT 1
- Backstop on GH action – when I am running backstop on the gh action, it wont detect the references HOT 3
- Backstop running on GH – the tests are not passing, because of difference on text rendering HOT 2
- Significant degradation in performance using Docker
- Question about a feature HOT 1
- Backstop js give false result when greyed out or * iteam are missing on UI
- Does backstop also provide size and color details of UI components
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backstopjs.