public override void Bind(mshtml.HTMLDocument dom, string rawContent) { Clean(); SessionDocument = new HtmlNodeHierarchy(rawContent.AsHtmlDocument().DocumentNode); String domDocStr = ("" + (dom as dynamic).documentElement.OuterHtml + ""); DomDocument = new HtmlNodeHierarchy(domDocStr.AsHtmlDocument().DocumentNode); }
public override void Bind(mshtml.HTMLDocument dom, string content) { Clean(); var sess = Enumerable.First<FiddlerSessionHolder>(FiddlerHelper.GetSessionsStack()); //TODO: diff SessionDocument = new HtmlNodeHierarchy(sess.BrowsingResponse.ResponseContent.AsHtmlDocument().DocumentNode); String domDocStr = ("" + (dom as dynamic).documentElement.OuterHtml + ""); DomDocument = new HtmlNodeHierarchy(domDocStr.AsHtmlDocument().DocumentNode); }
public override void Bind(mshtml.HTMLDocument dom, string content) { Clean(); var sess = Enumerable.First <FiddlerSessionHolder>(FiddlerHelper.GetSessionsStack()); //TODO: diff SessionDocument = new HtmlNodeHierarchy(sess.BrowsingResponse.ResponseContent.AsHtmlDocument().DocumentNode); String domDocStr = ("" + (dom as dynamic).documentElement.OuterHtml + ""); DomDocument = new HtmlNodeHierarchy(domDocStr.AsHtmlDocument().DocumentNode); }
public void Clean() { SessionDocument = new HtmlNodeHierarchy(null); DomDocument = new HtmlNodeHierarchy(null); }