To change a value in an array, you need to use ExecuteScript + Javascript. This line does it:
executeScript | var b = ${arr}; b[${i}][2] = "done"; return b; | arr
Explanation:
-
Move the array from the Selenium IDE array variable (here called “arr”) into a Javascript array (here called “b”, code:
var b = ${arr};
) -
change the cells that you want to change (here
b[${i}][2] = "done";
) -
and then return the modified array back into the Selenium IDE variable (here
return b;
)
For a complete test macro see How to mark a row in a CSV line as processed?