We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f8ce98 commit c791499Copy full SHA for c791499
seleniumbase/core/browser_launcher.py
@@ -1270,7 +1270,10 @@ def _set_firefox_options(
1270
f_pref = firefox_pref_item.split(":")[0]
1271
f_pref_value = firefox_pref_item.split(":")[1]
1272
needs_conversion = True
1273
- else: # More than one ":" in the set. (Too many!)
+ elif firefox_pref_item.count("://") == 1:
1274
+ f_pref = firefox_pref_item.split(":")[0]
1275
+ f_pref_value = ":".join(firefox_pref_item.split(":")[1:])
1276
+ else: # More than one ":" in the set without a URL.
1277
raise Exception(
1278
'Incorrect formatting for Firefox "pref:value" set!'
1279
)
0 commit comments