i am Unable to use chrome profile session using selenium webdriver on render deployment in my local machine its properly working for my chrome path but in render or any other cloud service which path i need to define because i used local chrome path in my local machine but render don't have direct access to my computer files right? , this is my code please tell me how to manage chrome sessions-
CHROME_PROFILE_PATH = "C:/Users/DEEPSAHA/AppData/Local/Google/Chrome/UserData/Default" chrome_options = webdriver.ChromeOptions() chrome_options.add_argument(f"user-data-dir={CHROME_PROFILE_PATH}") chrome_options.add_argument("--headless") chrome_options.add_argument("--disable-gpu") chrome_options.add_argument("--no-sandbox") chrome_options.add_argument("--disable-dev-shm-usage") with webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options) as driver:
buran write Nov-12-2024, 07:59 AM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.