internal void UpdateTestHtmlDocumentView() { Presenters.WebSpyMainPresenter.PauseWebElementExplorerProcessing(); HAP.HtmlDocument doc = WebSpyBrowser.GetPageSource(); HAP.HtmlNode root = doc.DocumentNode.ChildNodes.FindFirst(@"html"); string rootNodeName = RemoveNamespace(root.Name); var treeRootNode = new TreeNode(rootNodeName); treeRootNode.Name = rootNodeName.ToLower(); treeRootNode.Tag = new HtmlTreeNodeData() { nodeXPath = "/html", OriginalHtmlNode = root, }; ParseHtmlNodes(treeRootNode, root.ChildNodes, "/html"); view.AddTestHtmlNodes(treeRootNode); Presenters.WebSpyMainPresenter.ResumeWebElementExplorerProcessing(); }