Answer the question
In order to leave comments, you need to log in
How to use portable version of Chrome with selenium in Python?
Is it possible to somehow use it together with the Selenium Chrome driver, which is not installed on the system, but simply copied?
It is necessary in order to save different settings in different profiles.
Answer the question
In order to leave comments, you need to log in
It is necessary in order to save different settings in different profiles.
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument("user-data-dir=./SeleniumProfile")
driver = webdriver.Chrome(chrome_options=options)
driver.get("https://google.com")
options.binary_location = './chrome/chrome'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question