Browser open with different user data using OpenQA.Selenium C#. (Trick google chrome)

Опубликовано: 17 Апрель 2026
на канале: IT Core Soft
1,390
12

Download from this link:
https://github.com/hamza3344/multiuse...
My fiverr link: https://www.fiverr.com/hamzakhalid178
My Upwork Profile: https://www.upwork.com/freelancers/~0...

Whatsapp Number: +923338672398

contact me on [email protected] for custom software's.
Please share and like the video and subscribe the channel
If any question comment below

in code
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;

button click

try
{
string username = Environment.UserName;
var options = new ChromeOptions();
options.AddArgument(@"--user-data-dir=c:\Users\" + username + @"\AppData\Local\Google\Chrome\User Data\");
options.AddArgument(@"--profile-directory=Default");
IWebDriver driver = new ChromeDriver(Application.StartupPath + "/drivers/", options);
}
catch(Exception e1)
{

}