Пример #1
0
        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);
            }
        }
Пример #2
0
        public WebForm(HtmlNode html)
        {
            var nodeParser = new AgilityNodeParser(html);

            Initialize(nodeParser);
        }