ATF - Click on a modal button

Suzie Metsch
Tera Contributor

I am creating an ATF to test the "Source Request" portion of a task. I can get to the point where I click the UI action "Source Request". After that I am trying to figure out how to add the ATF step to click a modal button on the UI Page. The button options are "Consume", "Transfer", "Purchase" (see screenshot).  I've tried using the name such as "Transfer" or "Consume" but that didn't work.   I tried finding the ID of the button and it shows me for example, id="transfer_order_action_1668026060876" but that number changes each time.  Any suggestions?

 

 

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Suzie Metsch 

the only thing which you can do is to use Click Component Custom UI step.

you will have to try multiple times to get the ID of that button

If you still cannot then you cannot proceed with the ATF for this testing

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

Would I use the "Click Component" step in place of the "Click modal button" step?

@Suzie Metsch 

if it works with Click Modal then use that OR else you can use Click Component custom UI step

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 ,

 

having one form it is(x table) in that add device ui button is available when we click on add device through click on component that is Custom Ui , it redirect to another form tha is (y) table i need to fill filed value in (y ) table how to archive this  . pls help me on this