Do not mark question as "Duplicate", please, because it's not. I'm asking about creating Chrome profile, not about opening them, please help.
This question asking how to create Chrome profiles programmatically using C# for further using it in selenium (prefer a way using selenium\chromedriver if it's possible).
I need to create one chrome profile for each login in logins[] array (Alex, Lucas, Josh).
//some way to create chrome profiles.
foreach(string login in logins){
options.AddArguments("--user-data-dir=" + pathToProfiles + login); //using created profile
using (IWebDriver webDriver = new ChromeDriver(options))
{
webDriver.Navigate().GoToUrl(@"https://www.facebook.com"); // or any other website.
}
}
The way of creating chrome profiles manually not fit in my case.
I found article with almost same issue, but for Firefox: Creating Firefox profile and switching off the marionette