If timeout reached on type command execute next command

Good evening,
I’m having trouble with a page, for some reason the box where to enter text changes name based on some reason I don’t understand. Since the box can only be called in 2 ways I wanted to make this rule:

if timeout reached on type command execute next command, i.e. if you do not find the box write the text in the other box. While if you find the box go two lines below.

example:

“Command”: “type”,
“Target”: “id = name1”,
“Value”: “pippo”,
“Description”: “”

if timeout reached

“Command”: “type”,
“Target”: “id = name2”,
“Value”: “pippo”,
“Description”: “”

else
go to the next line.
How can I do this?
Thank you

Jo Sabrina

When a command fails set in automatically statusok on false, and you can use this to know if a command failed.

Need this code

   {
      "Command": "if_v2",
      "Target": "${!statusOk} == false",
      "Value": "",
      "Description": ""
    },

After this you add the second type and close if with end

Here a simple example need to change statusok == false (when fails)

https://ui.vision/rpa/docs/selenium-ide/if

1 Like

thank you, I have succeeded, even if the Else mode is not necessary.