garris / BackstopJS

Catch CSS curve balls.
http://backstopjs.org
MIT License
6.68k stars 604 forks source link

CasperJS error #451

Open aleksey-pro opened 7 years ago

aleksey-pro commented 7 years ago

Can't solve this error. http://joxi.ru/E2p3kDyT5KwbmY

I reinstalled slimerjs several times with --save-dev and -g flags. It didn't help. I found in CasperJS issues this kind of decision (https://github.com/casperjs/casperjs/issues/861)

phantomjs = require 'phantomjs'
process.env.PHANTOMJS_EXECUTABLE = phantomjs.path

Trying to rename phantomjs to slimerjs and adding to node_modules\casperjs\bin\casperjs.js... no effect.

Primajin commented 7 years ago

Could you repost you error message or screenshot directly into here? With drag & drop you can add it directly into this textbox

aleksey-pro commented 7 years ago

NO problem :) 1afe181de0

There's also genConfig File

{
  "id": "prod_test",
  "viewports": [
    {
      "name": "phone",
      "width": 320,
      "height": 480
    },
    {
      "name": "tablet_v",
      "width": 768,
      "height": 1024
    },
    {
      "name": "tablet_h",
      "width": 1024,
      "height": 768
    }
  ],
  "scenarios": [
    {
      "label": "subtitle",
      "url": "http://localhost:3000/",
      "hideSelectors": [],
      "removeSelectors": [],
      "selectorExpansion": true,
      "selectors": [
        ".subtitle"
      ],
      "readyEvent": null,
      "delay": 500,
      "misMatchThreshold" : 0.1,
      "requireSameDimensions" : true,
      "onBeforeScript": "onBefore.js",
      "onReadyScript": "onReady.js"
    }
  ],
  "paths": {
    "bitmaps_reference": "backstop_data/bitmaps_reference",
    "bitmaps_test": "backstop_data/bitmaps_test",
    "casper_scripts": "backstop_data/casper_scripts",
    "html_report": "backstop_data/html_report",
    "ci_report": "backstop_data/ci_report"
  },
  "casperFlags": [],
  "engine": "slimerjs",
  "report": ["CLI", "browser"],
  "debug": false,
}
Primajin commented 7 years ago

OK, so it says it doesn't find slimerjs. Can you verify that the command works flawlessly outside of backstop on the normal command line? Also you can set the last property debug in your backstop config to true, to see more details. Furthermore I suggest using the "Ubuntu in Windows" - Commandline / Shell as it works much smoother with scripts - but you'll have to reinstall node and stuff there again.

aleksey-pro commented 7 years ago

I reinstalled Node to newest 6.10.3 version. Property debug is set to true. Unfortumately I use Windows7 - it doesn't supports Ubuntu shell. Alternatively I use cmder command line emulator - the screenshot has been made from this program. So the error stays the same... and debug option doesn't shows anything new... image

I didn't unerstand what you mean telling me

Can you verify that the command works flawlessly outside of backstop

which command?

I feel that advice would be to use UbuntuOS...

Primajin commented 7 years ago

I meant to try to run slimerjs command right from your console. Maybe there is a path variable missing and your system does not recognize the command. So as soon as CasperJS runs slimerjs command, it fails.

aleksey-pro commented 7 years ago

I found out that my Firefox was 53th. I reinstalled and downgraded to 50th version. This is Hello world code, it has some errors with driver but anyway it works. image Inspite slimerjs can work - it didn't help to solve launching by CasperJS. It asks me if I installed slimerjs.