I am using Selenium WebDriver to do something on a page that requires http authentication.
I am already login in my default profile. But the selenium chromedriver will automatically use a new profile for each use therefore I can't get past the authentication stage.
Therefore, I was thinking of using my default profile (With account login inside) on Selenium WebDriver for Chrome.
The default profile don't seem to be loaded into Chrome even when I use the code as below
ChromeOptions options = new ChromeOptions();
options.AddArguments("user-data-dir=C:/Users/user_name/AppData/Local/Google/Chrome/User Data/Default");
IWebDriver driver = new ChromeDriver(@"C:\Users\Lawrence\Desktop\selenium-dotnet-2.33.0\net40",options);
Any help? =)
Try add '--' before your Chrome switch and remove
Default
from path, escape slashes if necessary.