Hello All,
I am trying to use If_v2 to check is a variable contains specific text.
Based on the result, I will fill a text field with a different Text value.
But, I am getting an error in If statement.
// Extracting the value in a variable myheader
{
“Command”: “storeText”,
“Target”: “xpath=//[@id=“content”]/div/div/form/section/div[1]/h2",
“Value”: “myheader”
},
// If myheader contains “Step 1” as text, then
{
“Command”: “if_v2”,
“Target”: "${myheader} == 'Step 1’”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=fname”,
“Value”: “SomeName”
},
{
“Command”: “else”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=fname”,
“Value”: “Someothername”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”
},
Thanks
Prashant