Пример #1
0
        void StatementNextPage(HtmlElement b)
        {
            // <select class="pulldownPeriod long" name="slCreditCard" onchange="searchbuttonclick();" id="id-772007528_slCreditCard">
            HtmlElement selectCard = b.Find(x => x.TagName == "SELECT" && x.AttributeContains("id", "_slCreditCard"));

            string[] ccp = System.Text.RegularExpressions.Regex.Split(selectCard.GetSelectText(), "\\s*\\/\\s*");
            CreditCard = ccp[0];
            Result.AddRange(ReadSearchResultTable(b));
            HtmlElement next = b.Find(x => x.AttributeContains("ClassName", "nextPage"));

            if (next == null)
            {
                GetNextPaymentTransaction(b);
            }
            else
            {
                BodyHandler = this.StatementNextPage;
                next.ClickElement();
            }
        }