public void EmbedBrowserSnapshot(string attachmentName, Browser browser)
        {
            if (browser == null)
                throw new ArgumentNullException("browser");

            try
            {
                var capture = new CaptureWebPage(browser);
                System.Drawing.Image image = capture.CaptureWebPageImage(true, false, 100);

                using (TestLog.BeginSection(browser.Url))
                    TestLog.EmbedImage(attachmentName, image);
            }
            catch
            {
                // Ignore the failure since the snapshot is for diagnostic purposes only.
                // If we can't capture it then too bad.
            }
        }