So i've been trying to start my selenium session with my own profile and here is my code:
ChromeOptions options = new ChromeOptions();
options.AddArguments("user-data-dir=C:\\Users\\Mymsi\\AppData\\Local\\Google\\Chrome\\User Data");
options.AddArguments("--start-maximized");
IWebDriver driver = new ChromeDriver(@"C:\Users\aliza\Downloads");
driver = new ChromeDriver(options);
but for some reason selenium keeps starting a new session. Can someone tell me what am doing wrong?
按照以下代码启动驱动程序
IWebDriver driver = new ChromeDriver(@"C:\Users\aliza\Downloads", options);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.