added pageLoadStrategy on the cli

This commit is contained in:
soulgalore 2018-05-30 20:31:50 +02:00
parent cc65dae331
commit 480db4441e
1 changed files with 8 additions and 0 deletions

View File

@ -158,6 +158,14 @@ module.exports.parseCommandLine = function parseCommandLine() {
'Delay between runs, in milliseconds. Use it if your web server needs to rest between runs :)',
group: 'Browser'
})
.option('browsertime.pageLoadStrategy', {
alias: 'pageLoadStrategy',
choices: ['normal', 'none'],
default: 'none',
describe:
'The Page Load Strategy decides when you have control of the page load. Default is none meaning you will have control direct after navigation. That means that in a preTask that loads a page, you need to wait for the page to load.',
group: 'Browser'
})
.option('browsertime.visualMetrics', {
alias: ['visualMetrics', 'speedIndex'],
type: 'boolean',