private static IWebBrowser GetWebBrowser()
 {
     var logger = new TraceLogger(LogChatterLevels.Full);
     var webBrowserFactory = new WebBrowserFactory(logger, null, null);
     Func<byte[]> hostXap = () => new byte[] { 0, 0, 0 };
     return webBrowserFactory.CreatePhone(hostXap);
 }
 private static List<IWebBrowser> GetWebBrowsers(ILogger logger, Uri testPageUrl, ClientTestRunConfiguration clientTestRunConfiguration, bool showTestingBrowserHost, string queryString, bool forceBrowserStart)
 {
     var webBrowserType = clientTestRunConfiguration.WebBrowserType;
     var webBrowserFactory = new WebBrowserFactory(logger);
     var testPageUrlWithQueryString = new Uri(testPageUrl + "?" + queryString);
     logger.Debug("testPageUrlWithQueryString = " + testPageUrlWithQueryString);
     List<IWebBrowser> webBrowsers = Enumerable
         .Range(1, clientTestRunConfiguration.NumberOfBrowserHosts)
         .Select(browserI => webBrowserFactory.Create(webBrowserType, testPageUrlWithQueryString, showTestingBrowserHost, forceBrowserStart, clientTestRunConfiguration.NumberOfBrowserHosts > 1))
         .ToList();
     return webBrowsers;
 }