Cannot select the Radio Button using Click Component (Custom UI) in ATF

symonflores_23
Tera Guru

I'm experiencing the same issue with the risk assessment form when using ATF:

 

https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-select-a-related-links-usin...

 

The problem is that I cannot select any of the choices in the risk assessment, and even the Submit button does not respond to clicks of the ATF.

symonflores_23_0-1752134516813.png

Retrieved Components in ATF:

symonflores_23_1-1752134601748.png

 

Cannot proceed with the rest of steps if risk assessment is not filed.

 

Am I missing something? Or is there any work around for this?

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@symonflores_23 

ATF has it's limitations when it comes to Custom UI step.

If you are able to retrieve the components and unable to set, nothing can be done here.

Even if you are able to set it, there's no guarantee it will work later or after the upgrade as it relies on the HTML elements on that page.

Please inform your customer about this limitation.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi Ankur, do you think it's possible to script the creation of risk assessment?

@symonflores_23 

you can but testing it with a scripted ATF defies the purpose of using ATF.

ATF is meant for testing simple use-cases and not complex ones which relies on custom steps.

So I will recommend to inform this to your customer.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Sardash
Mega Guru

@symonflores_23  - Can you please try using 'Set field values' test step. You can use it to target the radio button field by its name. Instead of entering a value, you will enter the label of radio button you want to select.