Skip to content

Commit

Permalink
cli: add pageCompleteCheckNetworkIdle
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Oct 24, 2023
1 parent 259ccf9 commit e0f4c50
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/cli/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit e0f4c50

Please sign in to comment.