I’m developing the dispatcher part of the 2nd assignment and I’m totally confused with the logic of clicking the page numbers.
Firstly, it says that I should check whether the next page button is active. Great, but it checks the existence of the current page.
The selector:
"<webctrl aaname='" + in_TransactionNumber.ToString + "' tag='LI' />"
Here we know that the in_TransactionNumber is the current page. Why do I need to check the current page?
Secondly, before extracting the data we have to click… on the current page as the selector is:
"<webctrl aaname='" + in_TransactionItem + "' tag='SPAN' class='page-numbers current' />"
Obviously, the TranscationItem variable equals to in_TransactionNumber.ToString, hence it’s the current page.
After we’ve scraped the data it doesn’t click the next page for obvious reasons. TransactionNumber is meant to increase and the selector with the increased TransactionNumber (hence, Item) simply don’t work.
Could you please clarify what I am doing wrong?