private void Initialization(string uri) { DefaultBrowser app = new DefaultBrowser(); app.CloseBrowser(); //BrowserWindow.ClearCache(); //BrowserWindow.ClearCookies(); app.LaunchUrl(uri); app.Maximized = true; }
public static BrowserWindow GetBrowser(this IControl control,List<UIProperty> properties) { bool hasDifferentBrowser = properties.Exists(uiproperty => uiproperty.PropertyName.Equals("bName")); DefaultBrowser b = new DefaultBrowser(); if (hasDifferentBrowser) { string propValue = properties.Find(uiproperty => uiproperty.PropertyName.Equals("bName")).PropertyValue; b.SearchProperties[HtmlControl.PropertyNames.Name] = propValue; } return b; }