Use storeValue to get the text from the box, and Do…RepeatIf for the loop:
This works - it loops until you enter “test” as name:
{
"Name": "storevalue",
"CreationDate": "2021-9-7",
"Commands": [
{
"Command": "open",
"Target": "https://ui.vision/contact",
"Value": "",
"Description": ""
},
{
"Command": "do",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "storeValue",
"Target": "id=ContactName",
"Value": "name",
"Description": ""
},
{
"Command": "repeatIf",
"Target": "${name} != \"test\"",
"Value": "",
"Description": "Type \"test\" in the name field to break the loop"
},
{
"Command": "echo",
"Target": "Done!",
"Value": "green",
"Description": ""
}
]
}
PS: Same as here: Stop macro execution command if string is found on website - #4 by ulrich (the only difference is here we use storeValue, and there storeText)