Brief essence of the problem:
When I use the csvRead command 2 times, it allows me
to get each login from the csv file and paste it into the login input field. If I use only 1 csvRead at the beginning (before while_v2 command), then UI Vision writes the error “[error] Line 3: Internal variable “!CSVREADMAXROW” not supported”.
Question: how to avoid writing the csvRead command 2 times?
I use UI Vision version 6.2.6
There is a JSON code:
{
"Name": "another",
"CreationDate": "2023-11-28",
"Commands": [
{
"Command": "store",
"Target": "medium",
"Value": "!replayspeed",
"Description": ""
},
{
"Command": "store",
"Target": "2",
"Value": "!csvreadlinenumber",
"Description": ""
},
{
"Command": "csvRead",
"Target": "web_logins.csv",
"Value": "",
"Description": ""
},
{
"Command": "while_v2",
"Target": "${!CSVReadLineNumber} <= ${!CSVReadMaxRow}",
"Value": "",
"Description": ""
},
{
"Command": "csvRead",
"Target": "web_logins.csv",
"Value": "",
"Description": ""
},
{
"Command": "echo",
"Target": "${!COL1}",
"Value": "#shownotification",
"Description": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "return Number(${!csvReadLineNumber})+1;",
"Value": "!csvreadlinenumber",
"Description": ""
},
{
"Command": "end",
"Target": "",
"Value": "",
"Description": ""
}
]
}