Allow setting user_data_dir with undetectable-chromedriver

This commit is contained in:
Michael Mintz 2022-09-08 22:24:03 -04:00
parent ea6e466800
commit a455c48487
1 changed files with 2 additions and 0 deletions

View File

@ -2435,6 +2435,7 @@ def get_local_driver(
uc_path = os.path.realpath(uc_path)
driver = undetected.Chrome(
options=chrome_options,
user_data_dir=user_data_dir,
driver_executable_path=uc_path,
headless=False, # Xvfb needed!
version_main=uc_chrome_version,
@ -2451,6 +2452,7 @@ def get_local_driver(
)
driver = undetected.Chrome(
options=chrome_options,
user_data_dir=user_data_dir,
driver_executable_path=uc_path,
headless=False, # Xvfb needed!
version_main=uc_chrome_version,