Skip to content

Commit

Permalink
disable -aff for -hl
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir committed Jun 7, 2024
1 parent b366f3f commit 3618c92
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/runner/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ func validateOptions(options *types.Options) error {
return errorutil.New("no inputs specified for crawler")
}

// Disabling automatic form fill (-aff) for headless navigation due to incorrect implementation.
// Form filling should be handled via headless actions within the page context
if options.Headless && options.AutomaticFormFill {
options.AutomaticFormFill = false
gologger.Info().Msgf("Automatic form fill (-aff) has been disabled for headless navigation.")
}

if options.Headless && options.Passive {
return errorutil.New("headless mode (-headless) and passive mode (-passive) cannot be used together")
}
Expand Down

0 comments on commit 3618c92

Please sign in to comment.