Select check box in List view using atf

Vishnu kumar R
Tera Guru

By any chance can we select the check box in list view by using ATF.

Please clarify.

 

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Vishnu kumar R 

My understanding say, No, It is not possible in ATF.

*************************************************************************************************************
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
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

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

Viraj Hudlikar
Giga Sage

@Vishnu kumar R  - Simple answer no.

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

Community Alums
Not applicable

Hi @Vishnu kumar R ,

As investigated, ATF cannot directly interact with checkboxes in list views.

But if you can verify with following ATF script, we can get solution for this requirement.

 

e.g. if you want to select a checkbox for all records in the incident table, you can do the following:

  1. Create an ATF Test that runs a Server-side Script step.
  2. In the script, use GlideRecord to update the checkbox field for records in the table.

var gr = new GlideRecord('incident'); // Replace with your table name
gr.addQuery('active', true); // Add any condition as needed
gr.query();

while (gr.next()) {
gr.checkbox_field = true; // Replace 'checkbox_field' with your field name
gr.update(); // Update the record
}