I’ve got the following Do, repeatIf sequence that I modified from a a sample I read in the forum but I don’t understand why it’s not working, even though the value is correct it just keep looping.
Also the value that auto fills the box that I’m typing into is 10000 so not sure if include, is the right kind of verification for my needs.
Cheers
{
"Command": "do",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "type",
"Target": "id=sumInv",
"Value": "10",
"Targets": [
"id=sumInv",
"name=sumInv",
"xpath=//*[@id=\"sumInv\"]",
"xpath=//input[@id='sumInv']",
"xpath=//div/input",
"css=#sumInv"
],
"Description": ""
},
{
"Command": "storeText",
"Target": "id=sumInv",
"Value": "t",
"Description": ""
},
{
"Command": "echo",
"Target": "The amount is ${t}",
"Value": "",
"Description": ""
},
{
"Command": "repeatIf",
"Target": "${t}.includes(\"10\") == false",
"Value": "",
"Description": ""
},
{
"Command": "echo",
"Target": "YES, the amount is 10",
"Value": "",
"Description": ""
},