Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

CasperError: Casper is not started, can't execute then() #44

Open
andrepm06 opened this issue Jun 29, 2015 · 0 comments
Open

CasperError: Casper is not started, can't execute then() #44

andrepm06 opened this issue Jun 29, 2015 · 0 comments

Comments

@andrepm06
Copy link

Hello,

I wrote the following in my grunfile.js:

phantomcss: {
            desktop: {
                options: {
                    screenshots: 'tests/visual-regression/screenshots/baseline',
                    results: 'tests/visual-regression/screenshots/results',
                    viewportSize: [1280, 1024]
                },
                src: ['test/visual-regression/**/*_spec.js']
            },

        mobile: {
            options: {
                screenshots: 'tests/visual-regression/screenshots/baseline',
                results: 'tests/visual-regression/screenshots/results',
                viewportSize: [320, 480]
            },
            src: ['test/visual-regression/**/*_spec.js']
        }
    }

grunt.loadNpmTasks('grunt-jasmine-node-new');

grunt.loadNpmTasks('grunt-phantomcss');

grunt.registerTask('test', ['phantomcss']);

};

But when i execute grunt test here what i got:

andre@testware:~/workspace/meu-psafe$ grunt test
Running "phantomcss:desktop" (phantomcss) task
CasperError: Casper is not started, can't execute `then()`                      
  /home/andre/workspace/meu-psafe/node_modules/grunt-    phantomcss/bower_components/phantomcss/CasperJs/modules/casper.js:396 in checkStarted
  /home/andre/workspace/meu-psafe/node_modules/grunt-        phantomcss/bower_components/phantomcss/CasperJs/modules/casper.js:1685 in then
  /home/andre/workspace/meu-psafe/node_modules/grunt-phantomcss/phantomjs/runner.js:58
    Warning:  Use --force to continue.

Aborted due to warnings.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant