-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
-
hi, sorry for the dumb question, but when i try to open specific Chromium profile with seleniumbase doesn't work for me.
this is my simple code:
from seleniumbase import SB
import time
import os
def open():
Profile_Path = fr"C:\Users\{os.getlogin()}\profiles\ConnectBoite\Profile12" # C:\Users\{os.getlogin()}\AppData\Local\Chromium\User Data\Profile 12
Bnry_Path = fr"C:\Users\{os.getlogin()}\browser\chrome.exe"
with SB(user_data_dir=Profile_Path,binary_location=Bnry_Path) as sb:
url = "https://pixelscan.net"
sb.open(url)
sb.sleep(5*60)
if __name__ == '__main__':
open()
i used regular path and custom path for my profile location and i remove space in the custom path but doesn't work, i'm found 'default 'added to the path.
can someone help me please and thank u
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 1 reply
-
Duplicate of #2596 (comment) / #2432 (comment) / #2331 (comment).
If you need multiple profiles, set a different user_data_dir
for each one that you want. Only the Default
profile is supported.
If you're setting the user_data_dir
while using UC Mode, then make sure you read #2118 (comment) first. (Don't mix a regular user_data_dir
with one that is used by UC Mode Chrome, as the two formats are not compatible.)
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
understood, thank you sir for your time & help
Beta Was this translation helpful? Give feedback.