private void Initialize() { var nodeParser = new AgilityNodeParser(html); ParseAction(nodeParser); ParseMethod(nodeParser); FormFields = ParseFormFields(nodeParser); if (!FormFields.Any() && html.ParentNode != null) //forms can have a with agility pack { nodeParser = new AgilityNodeParser(html.ParentNode); FormFields = ParseFormFields(nodeParser); } }
public WebForm(HtmlNode html) { var nodeParser = new AgilityNodeParser(html); Initialize(nodeParser); }