Skip to content

Commit 9636868

Browse files
committed
Update parsing of Firefox args
1 parent 3d39746 commit 9636868

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2450,10 +2450,8 @@ def _set_firefox_options(
24502450
firefox_arg_list = firefox_arg.split(",")
24512451
for firefox_arg_item in firefox_arg_list:
24522452
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:
2453+
if not firefox_arg_item.startswith("-"):
2454+
if firefox_arg_item.count(os.sep) == 0:
24572455
firefox_arg_item = "--" + firefox_arg_item
24582456
if len(firefox_arg_item) >= 3:
24592457
options.add_argument(firefox_arg_item)

0 commit comments

Comments
 (0)