diff --git a/internal/runner/options.go b/internal/runner/options.go index 0c7fd0fb..eb7f1738 100644 --- a/internal/runner/options.go +++ b/internal/runner/options.go @@ -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") }