Level 3 Assignment 2 Selector Next Page

i can give you a approach if you have not already done it like this.
Its simpler and you can avoid all the checks.

TransactionNumber =1
So in the GetTransactionData:

  1. Element exist current page 1
    "<webctrl aaname='"+in_TransactionNumber.ToString+"' class='page-numbers current' tag='SPAN'/>"
  2. Scrape the current page
  3. For each row add the items Wi4 to the queue
  4. Element exists TransactionNumber+1
    "<webctrl aaname='"+(in_TransactionNumber+1).ToString+"' class='page-numbers' tag='A'/>"
  5. If true assign out_TransactionIte = in_TransactionNumber+1

In Process

  1. Click on the next page
    "<webctrl aaname='"+(in_TransactionItem+1).ToString+"' tag='A' class='page-numbers'/>"
3 Likes