cli: add pageCompleteCheckNetworkIdle

This commit is contained in:
soulgalore 2023-10-24 06:44:35 +02:00
parent 259ccf952e
commit e0f4c50341
1 changed files with 8 additions and 0 deletions

View File

@ -387,6 +387,14 @@ export async function parseCommandLine() {
'The time in ms to wait for running the page complete check for the first time. Use this when you have a pageLoadStrategy set to none',
group: 'Browser'
})
.option('browsertime.pageCompleteCheckNetworkIdle', {
alias: 'pageCompleteCheckNetworkIdle',
type: 'boolean',
default: false,
describe:
'Use the network log instead of running JavaScript to decide when to end the test. This will wait for 5 seconds of no network activity before it ends the test. This can be used with Chrome/Edge and Firefox.',
group: 'Browser'
})
.option('browsertime.pageLoadStrategy', {
alias: 'pageLoadStrategy',
type: 'string',