Not to create a new Casper
instance
in a split test file;
To call the Tester.done()
method when all the tests
contained in a single file have been executed.
ps : you can read the docs here
My question is about the first condition : I need to include jquery script, How can I do that, because the syntax of including script is as follow :
var casper = require('casper').create({ clientScripts: [ 'includes/jquery.js', // These two scripts will be injected in remote 'includes/underscore.js' // DOM on every request ],
page.injectJs("jquery.min.js") ) ?
...
});
there are another way to include files or we must use phantomjs syntax (
regards.