Hi!
I used storetext to get a web table’s data into a csv… the problem is it prints all the data into what would be 1 single cell instead of actually printing each td between commas or tabs so excel or drive understand it as a table and not as a "print everything in A1.
I cannot share with you the url because it is password protected, but here is the script:
{
"Name": "get table data",
"CreationDate": "2020-11-30",
"Commands": [
{
"Command": "comment",
"Target": "open // MY_URL",
"Value": ""
},
{
"Command": "",
"Target": "",
"Value": ""
},
{
"Command": "storeText",
"Target": "xpath=//*[@id=\"root\"]/div/div[2]/div/main/div/div/div/div/div[2]/div/div/table",
"Value": "data"
},
{
"Command": "store",
"Target": "${data}",
"Value": "!csvLine"
},
{
"Command": "echo",
"Target": "${!csvLine}",
"Value": ""
},
{
"Command": "csvSave",
"Target": "table-data.csv",
"Value": ""
},
{
"Command": "store",
"Target": "true",
"Value": "!statusok"
},
{
"Command": "comment",
"Target": "executeScript // return Number (${r}) + 1",
"Value": "r"
}
]
}