[rb] Modern Firefox does not like both the -v and --log flags at the same time#17412
[rb] Modern Firefox does not like both the -v and --log flags at the same time#17412shs96c wants to merge 8 commits intoSeleniumHQ:trunkfrom
-v and --log flags at the same time#17412Conversation
Review Summary by QodoFix Firefox geckodriver -v and --log flag conflict in SE_DEBUG mode
WalkthroughsDescription• Fix Firefox geckodriver conflict between -v and --log flags • Preserve explicit logging arguments when SE_DEBUG is set • Apply debug configuration during both initialization and launch • Update test expectations and add launch-time configuration test File Changes1. rb/lib/selenium/webdriver/firefox/service.rb
|
Code Review by Qodo
1. instance_double(ServiceManager) added
|
| warn_driver_log_override | ||
| def configure_debug_args(args) | ||
| if args.any? { |arg| arg.start_with?('--log') } | ||
| args.reject! { |arg| /\A-v+\z/.match?(arg) } |
There was a problem hiding this comment.
so SE_DEBUG does not overrides the user's --log and the warning's gone, is that what we want? and why?
There was a problem hiding this comment.
Good point. I've amended the PR.
No description provided.