Replies: 6 comments 1 reply
-
use the constructor parameter user_data_dir where chromeProfile is a file path
|
Beta Was this translation helpful? Give feedback.
-
Also worth noting with chrome profiles, after a while they seem to break everything. This has been explained in an issue somewhere, not certain what the cause is but if your script starts acting funky delete the profile file and it seems to work fine again. You'll need to redo whatever config you had that you want to persist between instances. |
Beta Was this translation helpful? Give feedback.
-
How do I specify the profile name? For example, on my mac, this is the profile path when I do chrome://version: I am initializing the driver using this: However, I open the chrome version page using the UC driver, the profile path is listed as: How do I make sure that Default is not appended at the end and that the driver actually uses Profile 5? In the vanilla version, we could specify both the profile path and the profile name. Here I am only seeing the option to provide the path. |
Beta Was this translation helpful? Give feedback.
-
try this way |
Beta Was this translation helpful? Give feedback.
-
No. It not going to work like that
You of to have --user-dir and the profile separate with the two backword
slash
…On Mon, Mar 6, 2023, 12:08 PM Carter Struk ***@***.***> wrote:
I'm on windows, I name the directory with the file path
'd:\\Temp\\profile-0'
—
Reply to this email directly, view it on GitHub
<#1101 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5O4ZRC62WQOIKSJSDQMH43W2YK2LANCNFSM6AAAAAAVMZKDC4>
.
You are receiving this because you commented.Message ID:
<ultrafunkamsterdam/undetected-chromedriver/repo-discussions/1101/comments/5218385
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
try to to make sure you force close all the chrome operation before running your code |
Beta Was this translation helpful? Give feedback.
-
Hi,
i am trying to get a real google chrome profile
options = webdriver.ChromeOptions()
options.add_argument('--user-data-dir=C:/Users/GOD/AppData/Local/Google/Chrome/User Data')
options.add_argument('--profile-directory=Profile 2')
and when starting the browser opens, but it no longer redirects me to the get url, it stays blank. the profile takes it perfectly! I need help thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions