- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2020 01:31 PM
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
Solved! Go to Solution.
- Labels:
-
Automated Test Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2020 04:48 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2020 11:41 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2020 04:48 AM
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2020 04:34 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2020 11:20 AM
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?