I am using code that I found on this website:
With this code, I should be able to open a chrome windows already connected to my google profile.
There is the last version of my code:
import undetected_chromedriver as uc
import time
options = uc.ChromeOptions()
driver = uc.Chrome(
user_data_dir = "C:\\Users\\...\\Profile 1", version_main=133
)
driver.get( '' )
time.sleep(10)
driver.quit()
I try many different ways and I am never logged in. I tried with only selenium and it work fine...
I am using code that I found on this website: https://github.com/ultrafunkamsterdam/undetected-chromedriver
With this code, I should be able to open a chrome windows already connected to my google profile.
There is the last version of my code:
import undetected_chromedriver as uc
import time
options = uc.ChromeOptions()
driver = uc.Chrome(
user_data_dir = "C:\\Users\\...\\Profile 1", version_main=133
)
driver.get( 'https://nowsecure.nl' )
time.sleep(10)
driver.quit()
I try many different ways and I am never logged in. I tried with only selenium and it work fine...
Share asked 10 hours ago Why_Life_Why_Life_ 1 New contributor Why_Life_ is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. 1- It should load your chrome profile that you have provided. How are you making sure it hasn't loaded your profile? – Automator Commented 5 hours ago
1 Answer
Reset to default 0Try the following: 1- Set the Profile Name
options = uc.ChromeOptions()
options.add_argument("--profile-directory=Profile 1")
2- Use an Older Version of UC
undetected-chromedriver==3.4.6
3- Verify Profile Path manually
chrome.exe --user-data-dir="C:\Users\YourUser\AppData\Local\Google\Chrome\User Data" --profile-directory="Profile 1"