If I run the same script 10x, there’s always around 1x where the output is very occasionally jumbled. The script is supposed to have 3 entries per row, but for example, here line 10 on the right “hyundaicapi” decided to overwrite one cell of the previous data, compared to the left when it ran properly and “hyundaicapi” is in a new row:
This is the only way the bug shows up, and when it shows up it does not affect the next entries. What’s going on here? Is this a bug? Running 7.0.11 and here is my script:
{
"Name": "company numbers",
"CreationDate": "2022-5-12",
"Commands": [
{
"Command": "XType",
"Target": "${KEY_BKSP}",
"Value": "",
"Description": ""
},
{
"Command": "csvRead",
"Target": "oc_csvread.csv",
"Value": "",
"Description": ""
},
{
"Command": "XClick",
"Target": "ew1xhl_dpi_192.png",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${!COL1}",
"Value": "",
"Description": ""
},
{
"Command": "pause",
"Target": "1000",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${KEY_ENTER}",
"Value": "",
"Description": ""
},
{
"Command": "store",
"Target": "${!COL1}",
"Value": "!csvLine",
"Description": ""
},
{
"Command": "sourceExtract",
"Target": "regex=(?<=Total \\().+?(?=\\))",
"Value": "!csvLine",
"Description": ""
},
{
"Command": "storeText",
"Target": "xpath=//*[@id=\"provider-mounter\"]/div/div[2]/div[2]/div/div/div/div[2]/div/div[2]/div/div/div/div/div[2]/div/div[3]/div/div/div/div/div[2]/div/table/tbody/tr/td[6]/span",
"Value": "!csvLine",
"Description": ""
},
{
"Command": "csvSave",
"Target": "oc_2test",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${KEY_BKSP}${KEY_BKSP}${KEY_BKSP}${KEY_BKSP}${KEY_BKSP}${KEY_BKSP}",
"Value": "",
"Description": ""
},
{
"Command": "pause",
"Target": "1000",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${KEY_BKSP}${KEY_BKSP}",
"Value": "",
"Description": ""
},
{
"Command": "pause",
"Target": "1000",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${KEY_BKSP}",
"Value": "",
"Description": ""
}
]
}
(the ${KEY_BKSP} also sometimes doesn’t work, so I added a bunch of them for backup which solved the problem)