How can i click on "OK" or "CANCEL" buttons on alert box sing ATF steps.

Bharath Reddy G
Kilo Explorer

Hello,

I have been tried all custom UI steps to retrive components but it is still fails.

Screenshots attached. Please suggest the way to do it.find_real_file.pngfind_real_file.png

2 REPLIES 2

Cuong Phan
Kilo Sage

Hi Brahah,

Please check 3 things which might solve your issue:

1. If you can inspect it manually, you literally can use it in ATF.

find_real_file.png

2. Set time out for your test step

find_real_file.png

3. Last but not least, delete runner and test on a new runner

find_real_file.png

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.

 

Cuong Phan

DXC Consultant.

Regards,
Cuong Phan
ServiceNow Technical Lead

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Bharath,

Since the confirm, prompt and alert boxes are javascript boxes; ATF won't recognize them as ATF test runner doesn't recognize those.

This has been confirmed with ServiceNow earlier by me and it is not supported.

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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