Level 3 Assignment 2 Click on Next Page

Hi,

I’m having issues with the Click and OnElementExist activities.

I’ve used full selectors for both and assigned them to string variables.

I set the initial value of in_TransactionNumber to 2 and in_TransactionItem to “2” and set the page on page#1.

image

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?

What is the Error message you are getting. Can you share the screenshot of it

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.

When I manually set the acme page number to 2, no error from OnElementAppear.

I didn’t use attach browser as the web page is already open and the selector is full selector. Could that be the cause?

Hi @jairyli

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…

1 Like

I changed to yours, still got the same error. Here’s my file.
Process.xaml (14.9 KB)

Did you change the selector i gave for the click activity as well? For element appear activity, it is the same

For Click activity. - Replace yours with this
"<html title='ACME System 1 - Work Items' /><webctrl aaname='" + in_TransactionItem + "' tag='LI' />"

Yes I changed it as well

Remove the attach browser from the the On Element Appear and put the ‘Click’ on an attach browser activity.

I just tried that. Still no luck

Hi all,
I fixed the issue using click text. Thanks for all your help

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.