Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update chrome_browser_options to support Chrome user profiles #1026

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/utils/chrome_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ def chrome_browser_options():
options.add_argument("--incognito")
options.add_argument("--allow-file-access-from-files") # Consente l'accesso ai file locali
options.add_argument("--disable-web-security") # Disabilita la sicurezza web
logger.debug("Using Chrome in incognito mode")
# Add user profile directory options
options.add_argument("--user-data-dir=/path to your chrome profile")
options.add_argument("--profile-directory=your profile name")

logger.debug("Using specified Chrome user")

return options

Expand Down