Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  • Create a Test Object, name it ‘chk_Title’ to present all Title checkboxes. You can name it whatever you want.

  • Capture XPath locator of the FIRST checkbox.

  • Change this XPath value to use a variable of your choice.


  • Switch to Scripting Mode of the current Test Case,  add the below code to loop through all 4 checkboxes: 

Code Block

//Check on all 4 checkboxes at the same time
  WebUI.check(findTestObject('chk_Title', [('index') : it]))


In the sample code above, “
each” loop is used. There are many ways to loops. Refer to this guide.

Based on the  original original XPath, tr value started as 2, so we can assume that other preceding checkboxes of tr values will be 3, 4 and 5. Katalon Studio will just loop through all of them.