Hey guys, this is my second day using UI Vision and I am still just getting my feet wet. I have zero background in coding so I appreciate all and any help!
I am trying to create a simple loop counter but keep getting this error: [error] Error in executeScript_Sandbox code: Unexpected string
Can you please have a look at my code and let me know where I went wrong. Have been using the executeScript_Sandbox function since yesterday but this is my first time encountering this issue.
P.S. I wasn’t having any luck with {!loop} and {!times}, so I tried creating my own custom variable to keep count : ${myCounter}
Code:
{
“Name”: “loop-count”,
“CreationDate”: “2020-5-23”,
“Commands”: [
{
“Command”: “store”,
“Target”: “1”,
“Value”: “myCounter”
},
{
“Command”: “do”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “echo”,
“Target”: “Our current count is : {myCounter}",
"Value": "green"
},
{
"Command": "executeScript_Sandbox",
"Target": "return Number {myCounter} +1”,
“Value”: “Count”
},
{
“Command”: “repeatIf”,
“Target”: “${myCounter} < 3”,
“Value”: “Count”
}
]
}