Skip to content

Commit 2036a7b

Browse files
authored
Merge pull request #2388 from seleniumbase/expand-firefox-pref-allowable-values
Expand firefox_pref to allow URLs as VALUEs in KEY:VALUE pairs
2 parents 9f8ce98 + da65901 commit 2036a7b

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pip>=23.3.2
22
packaging>=23.2
33
setuptools>=68.0.0;python_version<"3.8"
4-
setuptools>=69.0.2;python_version>="3.8"
4+
setuptools>=69.0.3;python_version>="3.8"
55
wheel>=0.42.0
66
attrs>=23.1.0
77
certifi>=2023.11.17

seleniumbase/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# seleniumbase package
2-
__version__ = "4.22.2"
2+
__version__ = "4.22.3"

seleniumbase/core/browser_launcher.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,10 @@ def _set_firefox_options(
12701270
f_pref = firefox_pref_item.split(":")[0]
12711271
f_pref_value = firefox_pref_item.split(":")[1]
12721272
needs_conversion = True
1273-
else: # More than one ":" in the set. (Too many!)
1273+
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.
12741277
raise Exception(
12751278
'Incorrect formatting for Firefox "pref:value" set!'
12761279
)

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
'pip>=23.3.2',
135135
'packaging>=23.2',
136136
'setuptools>=68.0.0;python_version<"3.8"',
137-
'setuptools>=69.0.2;python_version>="3.8"',
137+
'setuptools>=69.0.3;python_version>="3.8"',
138138
'wheel>=0.42.0',
139139
'attrs>=23.1.0',
140140
"certifi>=2023.11.17",

0 commit comments

Comments
 (0)