public Browser(IWebRequestFactory requestFactory = null, string name = null) { UserAgent = "SimpleBrowser (http://github.com/axefrog/SimpleBrowser)"; RetainLogs = true; Cookies = new CookieContainer(); if (requestFactory == null) { requestFactory = new DefaultRequestFactory(); } _reqFactory = requestFactory; WindowHandle = name; Browser.Register(this); }