How to read from csv - row 2 col 2 ? for example
Waiting ? any help here … > thank you
No Help ?? please help it is urgent!
It’s more simple to do
Need open csv, change line to read and use data
WARING: You must change the csv name and the xpath to use the ${!COL2}
This is the code
{
“Command”: “csvRead”,
“Target”: “new.csv”,
“Value”: “”
},
{
“Command”: “store”,
“Target”: “2”,
“Value”: “!csvReadLineNumber”
},
{
“Command”: “type”,
“Target”: “id=fcogn1”,
“Value”: “${!COL2}”
}
You can do like this
Or you could use csvReadArray
. Something like this:
{
"Command": "csvReadArray",
"Target": "fileName.csv",
"Value": "arr",
"Description": ""
},
{
"Command": "type",
"Target": "name=username",
"Value": "${arr[1][1]}",
"Description": ""
}
In csvReadArray, 1-1 would read row 2 col 2.
Please try this.