ATF: Click Component (Custom UI) Problems

jmiskey
Kilo Sage

We just started using the "Click Component (Custom UI)" step today, to click a button on a custom page we made on the Service Portal, and we have been having a ton of problems with it.  It seems to be very unreliable/inconsistent.  I am not sure if we are doing something wrong.

The component we need is not listed there, so we select "Retrieve Components".  It takes a while for it to run through that, and sometimes we receive errors along the way, and it dumps us out in what seems to be a "test impersonation state".  Most of the time, we are unable to get the components that we need.  We have an Approval Page on the Portal, and we are trying to click the "Approve" button.  My test has four approvals in it.  The odd thing is I got it to work for the first two Approvals, but not the second two.  No matter what I do, I cannot get it to display the Approve button I need in the drop-down box.

Is there some "trick" or "best practices" when it comes to working with this step?  It seems to be quite frustrating to try to use this.  We have not had much success with it.

Thanks

 

 

 

1 ACCEPTED SOLUTION

As I said in my initial post, I have tried that numerous times, and it was not working.  So I looked at my previous step, and noticed that I had set it to return the wrong page, which is why I was not returning the correct elements!

So, if anyhow has this same problem, be sure to check the previous step.

Sometimes, it helps just to walk away for a while, and come back and look at it again with fresh eyes!

 

View solution in original post

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you should be able to retrieve the page components in order to find it i.e. the html element etc and select in the Click Component (UI) step

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

As I said in my initial post, I have tried that numerous times, and it was not working.  So I looked at my previous step, and noticed that I had set it to return the wrong page, which is why I was not returning the correct elements!

So, if anyhow has this same problem, be sure to check the previous step.

Sometimes, it helps just to walk away for a while, and come back and look at it again with fresh eyes!

 

Samyak Jain2
Tera Guru

Hi Jmiskey,

Please help me i am retrieving a button that i made on custom widget it is not coming by using click custom ui step in atf.

jmiskey
Kilo Sage

What step do you have leading up to that action?

Is it an "Open Service Portal Page"?

Are you sure it is referencing the correct Service Portal Page?