Yes, If command needed. If text found then execute the group of commands associated with the text. If text not found search next text and if that found also execute that group of commands associated with the text. I need to search many text and for every text there is different commands.
{
“Name”: “TET”,
“CreationDate”: “2020-11-29”,
“Commands”: [
{
“Command”: “open”,
“Target”: “https://v2.gcchmc.org/book-appointment/”,
“Value”: “”
},
{
“Command”: “store”,
“Target”: “true”,
“Value”: “!errorignore”
},
{
"Command": "if_v2",
"Target": "${!statusOK}",
"Value": "false"
},
{
"Command": "assertText",
"Target": "xpath=/html/body/div[4]/div/div[2]/div/table[2]/tbody/tr[3]/td",
"Value": "+8803172688"
},
{
"Command": "else",
"Target": "",
"Value": ""
},
{
"Command": "XClick",
"Target": "GREEN_dpi_96.png",
"Value": ""
},
{
"Command": "pause",
"Target": "1000",
"Value": ""
},
{
"Command": "XClick",
"Target": "IMACROS_dpi_96.png",
"Value": ""
},
{
"Command": "pause",
"Target": "1000",
"Value": ""
},
{
"Command": "XClick",
"Target": "PLAY_dpi_96.png",
"Value": ""
},
{
"Command": "end",
"Target": "",
"Value": ""
},
{
"Command": "if_v2",
"Target": "${!statusOK}",
"Value": "true"
},
{
"Command": "assertText",
"Target": "xpath=/html/body/div[4]/div/div[2]/div/table[2]/tbody/tr[3]/td",
"Value": "+880316579190"
},
{
"Command": "else",
"Target": "",
"Value": ""
},
{
"Command": "XClick",
"Target": "BLUE_dpi_96.png",
"Value": ""
},
{
"Command": "pause",
"Target": "1000",
"Value": ""
},
{
"Command": "XClick",
"Target": "IMACROS_dpi_96.png",
"Value": ""
},
{
"Command": "pause",
"Target": "1000",
"Value": ""
},
{
"Command": "XClick",
"Target": "PLAY_dpi_96.png",
"Value": ""
},
{
"Command": "end",
"Target": "",
"Value": ""
}
]
}
Those commands not working for me, text found or not executing all the commands.
Please give me if commands.
Thanks