|
@@ -38,7 +38,6 @@ var PhantomasWrapper = function() {
|
|
'screenshot': task.options.screenshot || false,
|
|
'screenshot': task.options.screenshot || false,
|
|
'viewport': viewportOption,
|
|
'viewport': viewportOption,
|
|
'wait-for-network-idle': true,
|
|
'wait-for-network-idle': true,
|
|
- //'wait-for-selector': task.options.waitForSelector,
|
|
|
|
'cookie': task.options.cookie,
|
|
'cookie': task.options.cookie,
|
|
'auth-user': task.options.authUser,
|
|
'auth-user': task.options.authUser,
|
|
'auth-pass': task.options.authPass,
|
|
'auth-pass': task.options.authPass,
|
|
@@ -58,6 +57,14 @@ var PhantomasWrapper = function() {
|
|
options.proxy = task.options.proxy;
|
|
options.proxy = task.options.proxy;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ var debugCmd = 'DEBUG=* node node_modules/phantomas/bin/phantomas.js --url ' + task.url;
|
|
|
|
+ Object.keys(options).forEach(function(key) {
|
|
|
|
+ if (key !== 'wait-for-network-idle' && options[key] !== null) {
|
|
|
|
+ debugCmd += ' --' + key + ' ' + options[key];
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ debug('If you want to run Phantomas alone for debugging purpose, this is the command: %s', debugCmd);
|
|
|
|
+
|
|
// It's time to launch the test!!!
|
|
// It's time to launch the test!!!
|
|
|
|
|
|
const promise = phantomas(task.url, options);
|
|
const promise = phantomas(task.url, options);
|