I created 2 macros:
- The first one looks for the text ‘Connect’
- The second looks for the text ‘Send message’
Both of the work well independently one from the other.
Now I’d like to merge both of them using [if_error] and let the macro continue even in case that it fails at some point of the macro.
How should I deal with this issue? I read the documentation but couldn’t make it work.
{
"Command": "click",
"Target": "//*[text()[contains(.,'Connect')]]",
"Value": ""
},
. >>>>>>>>> if it fails to find the button "Connect" then jump to CONDITION-2 and… <<<<<<<<<
{
"Command": "type",
"Target": "id=custom-message",
"Value": "my-message-1"
},
**CONDITION-2**
{
"Command": "click",
"Target": "//*[text()[contains(.,'Send message')]]",
"Value": ""
},
{
"Command": "type",
"Target": "id=custom-message",
"Value": "my-message-2"
},