However, the click action didn’t take place and thus the OnElementExist didn’t work with the current page class. Can someone help to explain what went wrong?
Hi Theepan, thanks for your reply. The click action doesn’t have any error message. It just doesn’t perform anything. The OnElementAppear has the error below.
In the tutorial, we actually don’t use the attach browser activity to change the page. I think the selector you have used for the click activity is the problem…
Below are the selectors I have used when I was working on it… try it out and see whether it suits you…
For Click activity. - Replace yours with this "<html title='ACME System 1 - Work Items' /><webctrl aaname='" + in_TransactionItem + "' tag='LI' />"
For Element Appear activity - This is same as yours "<html title='ACME System 1 - Work Items' /><webctrl aaname='" + in_TransactionItem + "' tag='SPAN' class='page-numbers current' />"
This should work. Let me know how it goes for you…