Can we click "ok" button in the dialog box using ATF

Poojashree_G
Giga Contributor

Hi,

 

Can we click "ok" button in the dialog box using ATF.

Can someone help me with the ATF test step that can be used to click any button on the dialog box.

unnamed.png

Thanks

Pooja

6 REPLIES 6

Shaqeel
Mega Sage

Hi @Poojashree_G 

 

It can be easily done by using "Click Modal Button" step.

 

Regards

Shaqeel


***********************************************************************************************************************
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

Tried by using "Click Modal Button" step but didn't work for me.

Thanks

Pooja 

Ankur Bawiskar
Tera Patron
Tera Patron

@Poojashree_G 

javascript popups such as alert, confirm, prompt etc cannot be detected by ATF so this is not possible

this link mentions the same

ATF not supporting Pop-Up browser windows 

AnkurBawiskar_1-1698927140646.png

 

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

@Poojashree_G 

If you see my above response I already informed that this is not feasible

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