public BrowserType ChooseBrowserType() { if (Project.Current != null && Project.Current.Profile.IsNotEmpty()) { BrowserType profileType = BrowserType.IE; if (BrowserType.TryParse(Project.Current.Profile, true, out profileType)) { return(profileType); } } if (DefaultBrowser != null) { return(DefaultBrowser.Value); } return(WebDriverSettings.Current.Browser); }