You can see the code which I am using below to use another profile with webdriver. I'm needing to know how this is done since I want to be able to load my current chrome profile in to webdriver
options.AddArguments(String.Format(
"--user-data-dir=\"{0}\"", @"C:\Users\zacha\source\repos\Trial Bot - Test\Trial Bot - Test\bin\Debug\User Data"));
driver = new ChromeDriver(@"C:\Users\zacha\source\repos\Trial Bot - Test\Trial Bot - Test\",options);
Error when ran:
OpenQA.Selenium.WebDriverException: 'unknown error: Could not remove old devtools port file. Perhaps the given user-data-dir at "C:\Users\zacha\source\repos\Trial Bot - Test\Trial Bot - Test\bin\Debug\User Data" is still attached to a running Chrome or