Confused with the dispatcher logic, level 3, assignment 2

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?

I don’t know what is going on but right after I post a message here I find a mistake and everything works.
In this case the problem was with the click selector before using ‘On Element Appear’. It had to be the same as the selector in the ‘Element Exists’.
Nice talking to yourself.

1 Like

hahahaha

how cool is that, I remember the time when i didn´t post a problem because I found the solutions trying yo be as detail as possible…hahahah

Keep it up !!!