public void GetWebFormWithHttpRequestHelperAndParseWithMSHTML() { Uri requestUri = NormalizeUri("default.aspx"); string responseText = HttpRequestHelper.Get(requestUri, null, null); Assert.IsTrue(responseText.IndexOf("This is the default document of the TestWebApp") > 0); using (HttpRequestHelper browser = new HttpRequestHelper()) { // parse the html in internet explorer IHTMLDocument2 doc = browser.ParseHtml(responseText); // get the resultant html string content = doc.body.outerHTML; Assert.IsTrue(content.IndexOf("This is the default document of the TestWebApp") > 0); IHTMLElement form = browser.FindElementByID("form1"); Assert.IsNotNull(form); } }