Hi as i seen that How to mark a row in a CSV line as processed? - #3 by TechSupport
i want to be able to write the value from the CSV using the “type” command when the code indicates that the value is not “done.”
{
“Name”: “times”,
“CreationDate”: “2023-11-27”,
“Commands”: [
{
“Command”: “csvReadArray”,
“Target”: “sauvegarde_position_mym.csv\t”,
“Value”: “arr”,
“Description”: “”
},
{
“Command”: “times”,
“Target”: “${!CsvReadMaxRow}”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “executeScript_Sandbox”,
“Target”: “return ${!times} - 1;”,
“Value”: “i”,
“Description”: “”
},
{
“Command”: “if_v2”,
“Target”: “${arr[${i}][0]} == "done"”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “echo”,
“Target”: “voila ${arr[${i}][0]}”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “else”,
“Target”: “”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “open”,
“Target”: “https://fr.anotepad.com/”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “type”,
“Target”: "id=edit_textarea ",
“Value”: “variable_test”,
“Targets”: [
“id=edit_textarea”,
“name=notecontent”,
“xpath=//*[@id="edit_textarea"]”,
“xpath=//textarea[@id=‘edit_textarea’]”,
“xpath=//textarea”,
“css=#edit_textarea”
],
“Description”: “”
},
{
“Command”: “executeScript_Sandbox”,
“Target”: "var b = ${arr}; b[${i}][0] = ‘done’; return b; ",
“Value”: “arr”,
“Description”: “”
},
{
“Command”: “csvSaveArray”,
“Target”: “arr”,
“Value”: “sauvegarde_position_mym.csv\t”,
“Description”: “”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”,
“Description”: “”
}
]
}