Ultima modifica:
Ciao, vorrei aprire più profili chrome contemporaneamente usando selenium...
Ho provato facendo così:
il problema sta nel fatto che se ho un profilo chrome già aperto sul pc mi da errore:
Message: invalid argument: user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir
Qualcuno sa come posso risolvere?
Grazie.
Ho provato facendo così:
Python:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument("user-data-dir=C:\\Users\\utent\\AppData\\Local\\Google\\Chrome\\User Data")
options.add_argument("--profile-directory=Profile 3")
driver = webdriver.Chrome(executable_path=r'C:\Development\chromedriver.exe', options=options)
driver.get("https://www.google.it/")
il problema sta nel fatto che se ho un profilo chrome già aperto sul pc mi da errore:
Message: invalid argument: user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir
Qualcuno sa come posso risolvere?
Grazie.