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 3d39746 commit 9636868Copy full SHA for 9636868
seleniumbase/core/browser_launcher.py
@@ -2450,10 +2450,8 @@ def _set_firefox_options(
2450
firefox_arg_list = firefox_arg.split(",")
2451
for firefox_arg_item in firefox_arg_list:
2452
firefox_arg_item = firefox_arg_item.strip()
2453
- if not firefox_arg_item.startswith("--"):
2454
- if firefox_arg_item.startswith("-"):
2455
- firefox_arg_item = "-" + firefox_arg_item
2456
- else:
+ if not firefox_arg_item.startswith("-"):
+ if firefox_arg_item.count(os.sep) == 0:
2457
firefox_arg_item = "--" + firefox_arg_item
2458
if len(firefox_arg_item) >= 3:
2459
options.add_argument(firefox_arg_item)
0 commit comments