How to select values from dropdown on portal using ATF?

Rutuja4
Kilo Contributor

Hi all,

How to select values from dropdown on portal?

I tried using Click Component (Custom UI) and Set Component Values (Custom UI) but ATF fails to retrieve Select from dropdown option or click on dropdown to set values

Any other ways to do this?

 

Thanks!

13 REPLIES 13

Hi Rutuja,

Is this a catalog or record producer form on custom portal page?

please share the test steps screenshot you have written

Regards
Ankur

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

Hi Ankur/Asif,

For record producers, i am able to set values using set Field values SP

I want to select one value from dropdown.It is service portal application with custom UI hence first step i am using is 'Open Service Portal Page (custom ui)' and then set component value (custom ui).

The problem here is i have to select component to set the value but not able to find proper component for these two drop down.  

find_real_file.png

 

It is reference field on the form,Post selecting value from dropdown other fields will be visible.

 

find_real_file.png

Regards,

Rutuja Kulkarni

Hi Rutuja,

there are some limitations around custom UI steps.

you can try couple of times to detect the component.

But still if you are not able to find then you cannot proceed.

If this setup is in your personal instance and you are ok to share details such as url and some admin credentials then please share

Regards
Ankur

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

Jason Williams
Kilo Sage

I know this is an old post, but I thought I'd add an update since I was facing this issue, came across this post, and now have a resolution.

 

Initially I was trying to set the value of the component by searching for the label. This returned a Text <Input> (as shown in a screenshot shared in this thread) and was not working.

 

I then found that the component that I was looking for was actually a <Select> component named "Lookup using list":

 

JasonWilliams_0-1665515269531.png

I was able to then enter the text which looks up the desired record and the form saves successfully.

 

For ref, I'm using the form widget in Service Portal.

 

Hopefully this might shed some light for anyone else who runs into the same issue!