Description
Add options for --disable-features=F1,F2
/ disable_features=F1,F2
This will be an improvement over just having the fix for #2429 because only one feature can be disabled via the chromium_arg
parameter (--disable-features=F1
) because you can't have a comma-separated list inside another comma-separated list (because individual args won't have any commas after initial parsing, eg: chromium_arg=--disable-features=F1,--ANOTHER-OPTION
).
Note that some Chromium features will automatically be disabled as part of SeleniumBase default settings:
OptimizationHintsFetching,Translate,OptimizationTargetPrediction,DownloadBubble,DownloadBubbleV2
(That list changes slightly depending on whether you're using Edge instead, or are setting a custom user_data_dir
.)
Also note that --disable-features=F1,F2
is the command-line format (eg. pytest
).
Whereas disable_features=F1,F2
is the arg format for SB()
/ Driver()
managers.