Using .NET's C#:
I was thrilled to learn how to start a web driver session with your local cookie data here.
The browser now starts with my bookmarks and cookies loaded (I tested accessing sites that require authorization, to which I have already logged in in the past and saved the credentials).
However, for some reason, my web driver instance will not respond to a simple GoToUrl()
. In fact, the command prompt is always reporting about the session timing out after 60 seconds.
What is interesting, nevertheless, is that the following code will work if I simply suppress the line that adds the cookie path argument. (I have done lots of stuff with ChromeDrive already).
ChromeOptions options = new ChromeOptions();
options.AddArgument(string.Format("user-data-dir={0}", "C:/Users/Me/AppData/Local/Google/Chrome/User Data"));
IWebDriver wd = new ChromeDriver(options);
wd.Navigate().GoToUrl("http://www.google.com");
I tried other ChromeDriver overloads, such as the one that uses a ChromeDriverService, to no avail.
My chromedriver.exe obviously exists in D:/ (otherwise I would get a different error message).
What's wrong ?