I am looking for a C# script base that Will Add Current URLS to the IE Bookmarks that do not require building a separate class call. I am trying to build a script that takes the current URL and saves it to the Favorites... Any Help would be appreciated Im a noob and Im trying to figure this out. Im trying to save off the cookie right now but that doesnt seem promising
Manager.LaunchNewBrowser();
const string url = "www.google.com";
{
var cookie = new Cookie("foo", "bar", "/", url);
cookie.Expires = DateTime.MaxValue;
var ok = ActiveBrowser.Cookies.SetCookie(cookie);
}
var c = ActiveBrowser.Cookies.GetCookies("http://www.google.com");
var count = c.Count;
Log.WriteLine(count.ToString());
foreach (Cookie cookie in ActiveBrowser.Cookies.GetCookies("http://www.google.com"))
{
Log.WriteLine(cookie.Name);
}