Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to insert value into Prompt box in ATF (Automated Testing Framework) ( is it possible OR Not )

chanikya
Kilo Sage

Hi,

when i click on UI action it will displays one Prompt box for user input, Now how can i pass value into Prompt box  In ATF.

Any suggestions recommended .

find_real_file.png

 

find_real_file.png

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@chanikya 

Javascript prompt boxes, alert and confirm box cannot be tested via ATF

Regards
Ankur

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

View solution in original post

20 REPLIES 20

Did any success on this??we need same help

Any suggestions please , how to pass value into Prompt Box when we click on UI action

You can pass a default value to prompt() function.

prompt(text, defaultText/value/variable);

 

sure, i will pass default value.

Step 1: open existing record PRB000017

Step 2: Click On UI Action "Assign Asset" {when we click on it displays prompt message}

Step 3: ?

Any solutions found for this??