|
@@ -34,7 +34,11 @@ var ApiController = function(app) {
|
|
partialResult: req.body.partialResult || null,
|
|
partialResult: req.body.partialResult || null,
|
|
screenshot: req.body.screenshot || false,
|
|
screenshot: req.body.screenshot || false,
|
|
jsTimeline: req.body.jsTimeline || false,
|
|
jsTimeline: req.body.jsTimeline || false,
|
|
- device: req.body.device || 'desktop'
|
|
|
|
|
|
+ device: req.body.device || 'desktop',
|
|
|
|
+ waitForSelector: req.body.waitForSelector || null,
|
|
|
|
+ cookie: req.body.cookie || null,
|
|
|
|
+ authUser: req.body.authUser || null,
|
|
|
|
+ authPass: req.body.authPass || null
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
@@ -68,7 +72,11 @@ var ApiController = function(app) {
|
|
var runOptions = {
|
|
var runOptions = {
|
|
screenshot: run.params.screenshot ? screenshot.getTmpFilePath() : false,
|
|
screenshot: run.params.screenshot ? screenshot.getTmpFilePath() : false,
|
|
jsDeepAnalysis: run.params.jsTimeline,
|
|
jsDeepAnalysis: run.params.jsTimeline,
|
|
- device: run.params.device
|
|
|
|
|
|
+ device: run.params.device,
|
|
|
|
+ waitForSelector: run.params.waitForSelector,
|
|
|
|
+ cookie: run.params.cookie,
|
|
|
|
+ authUser: run.params.authUser,
|
|
|
|
+ authPass: run.params.authPass
|
|
};
|
|
};
|
|
|
|
|
|
return ylt(run.params.url, runOptions);
|
|
return ylt(run.params.url, runOptions);
|