The following script will still execute even the ID of that field does not exist:
This is caused by the fact that “Targets”: [… is holding values that are correct and seems to be used as alternatives… I think that is not good.
Once I remove “Targets”: [… it stops working as expected.
{
“Name”: “Test 3”,
“CreationDate”: “2023-11-15”,
“Commands”: [
{
“Command”: “open”,
“Target”: “Contact the Ui.Vision Team (Sales and Support)”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “type”,
“Target”: “id=blabla”,
“Value”: “Tests”,
“Targets”: [
“id=ContactName”,
“name=ContactName”,
“xpath=//*[@id="ContactName"]”,
“xpath=//input[@id=‘ContactName’]”,
“xpath=//div[3]/input”,
“css=#ContactName”
],
“Description”: “”
}
]
}