-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
bugUh oh... Something needs to be fixedUh oh... Something needs to be fixed
Description
I pass to firefox_pref the value of a link with the https://
protocol, which has a conflicting ':
' symbol
from seleniumbase import SB
with SB(headed=True,browser="firefox",firefox_pref="network.trr.mode:2,network.trr.uri:https://doh.opendns.com/dns-query") as sb:
sb.driver.get("https://browserleaks.com/ip")
input()
And I get an error
with SB(headed=True,browser="firefox",firefox_pref="network.trr.mode:2,network.trr.uri:https://doh.opendns.com/dns-query") as sb:
File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
return next(self.gen)
File "/home/zxcqwe123/.local/lib/python3.10/site-packages/seleniumbase/plugins/sb_manager.py", line 888, in SB
sb.setUp()
File "/home/zxcqwe123/.local/lib/python3.10/site-packages/seleniumbase/fixtures/base_case.py", line 14604, in setUp
self.driver = self.get_new_driver(
File "/home/zxcqwe123/.local/lib/python3.10/site-packages/seleniumbase/fixtures/base_case.py", line 3998, in get_new_driver
new_driver = browser_launcher.get_driver(
File "/home/zxcqwe123/.local/lib/python3.10/site-packages/seleniumbase/core/browser_launcher.py", line 1562, in get_driver
return get_local_driver(
File "/home/zxcqwe123/.local/lib/python3.10/site-packages/seleniumbase/core/browser_launcher.py", line 2096, in get_local_driver
firefox_options = _set_firefox_options(
File "/home/zxcqwe123/.local/lib/python3.10/site-packages/seleniumbase/core/browser_launcher.py", line 1274, in _set_firefox_options
raise Exception(
Exception: Incorrect formatting for Firefox "pref:value" set!
If you specify a link without a protocol, the driver starts, but the network.trr.uri parameter is not applied
The code was executed under ubuntu, but most likely this is a problem on all systems
I run the same code in a regular selenium with a link with protocol in the parameter and everything works.
Metadata
Metadata
Assignees
Labels
bugUh oh... Something needs to be fixedUh oh... Something needs to be fixed