Skip to content

Chrome profile path deployment issue for profile session #2

@OfficialDeepSaha

Description

@OfficialDeepSaha

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions