My selenium driver wont open my chrome profile. Chrome drivers are same with my chrome version. It just opens clean browser.
Here is code:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
options = Options()
browser = webdriver.Chrome(executable_path="C:/Users/rektl/Desktop/csdd projekts/chromedriver.exe", chrome_options=options)
options.add_argument("user-data-dir=C:/Users/Rektl/AppData/Local/Google/Chrome/User Data/Profile 2")
browser.get("https://google.com")
Some error codes if that will help:
[8052:3876:0303/141810.953:ERROR:device_event_log_impl.cc(214)] [14:18:10.953] USB: usb_device_handle_win.cc:1049 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[8052:3876:0303/141810.965:ERROR:device_event_log_impl.cc(214)] [14:18:10.965] USB: usb_device_handle_win.cc:1049 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[8052:3988:0303/141810.995:ERROR:chrome_browser_main_extra_parts_metrics.cc(239)] END: GetDefaultBrowser()