Skip to content

Commit 7e2c566

Browse files
committed
Refactor Chromium options
1 parent aa0f134 commit 7e2c566

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ def _set_chrome_options(
606606
pass
607607
if user_data_dir and not is_using_uc(undetectable, browser_name):
608608
abs_path = os.path.abspath(user_data_dir)
609-
chrome_options.add_argument("user-data-dir=%s" % abs_path)
609+
chrome_options.add_argument("--user-data-dir=%s" % abs_path)
610610
if extension_zip:
611611
# Can be a comma-separated list of .ZIP or .CRX files
612612
extension_zip_list = extension_zip.split(",")
@@ -2320,7 +2320,7 @@ def get_local_driver(
23202320
)
23212321
if user_data_dir and not is_using_uc(undetectable, browser_name):
23222322
abs_path = os.path.abspath(user_data_dir)
2323-
edge_options.add_argument("user-data-dir=%s" % abs_path)
2323+
edge_options.add_argument("--user-data-dir=%s" % abs_path)
23242324
if extension_zip:
23252325
# Can be a comma-separated list of .ZIP or .CRX files
23262326
extension_zip_list = extension_zip.split(",")

0 commit comments

Comments
 (0)