ATf testing iframe popup for Risk Assesssment

Matthew20
Tera Contributor

I am looking for help with an issue. My instance has a popup(I believe iframe) after clicking RISK ASSESSMENT on the CHG form. The form has 7 mandatory fields that have to be completed in it. I am trying to create test steps to test through it but I'm not having luck. So far I have(at the appropriate point in the overall test)...

  • a step to open the existing  record.
  • Click risk assessment ui action.
  • a set component values step to find the fields on the popup and set answers for them.
  • Click modal button step to click SUBMIT on that popup 

The test fails stating "did not find glide modal" but I believe it should simply be "Submit".

 

All of this was made pulling ideas from copilot prompts trying to resolve ATF not easily working with the popup we have in place.

Is this the right direction to go in with this? If so how do I click submit on the button in the popup?

 

Anyone that can provide any help would be greatly appreciated. Thank you.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@Matthew20 

if you are unable to get the HTML elements for the radio button even after trying multiple times then inform customer that this is not feasible to do with ATF.

still you can check these links

ATF Risk assessment step 

ATF Steps for Change Risk Assessment [HOWTO]

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

4 REPLIES 4

Shaqeel
Mega Sage

Hi @Matthew20 

 

It is the well known limitation of ATF.

You could try Click component in custom ui.

But, pop ups are not supported by ATF as of now. 


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

Ankur Bawiskar
Tera Patron

@Matthew20 

if you are unable to get the HTML elements for the radio button even after trying multiple times then inform customer that this is not feasible to do with ATF.

still you can check these links

ATF Risk assessment step 

ATF Steps for Change Risk Assessment [HOWTO]

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@Matthew20 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Thanks for the input.

After testing this I was able to get a SET COMPONENT step to read and identify each of the choices but when i run the test it fails stating. "FAILURE: Unable to set component 'Choice list <select> [ASMTQUESTION"

Through research I find that the ID's are dynamic and changing each time its ran. is there a path to solve this? I would like to keep the solution low/no code for the ATF team.