Loop: macro X 100 times, then run macro Y

Hey,

I would like to have the following loop:
First run macro X 100 times, then play macro Y once. (and then repeat this process)

I guess this might be possible using the API autostart stuff, but I don’t really understand how to do this so I’d appreciate if someone could get me started.

Thanks.

@Siebe

You can use the times command

Here info and example

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

Thanks, didn’t know about that command.
So something like this:

{
  "Name": "Macro",
  "CreationDate": "2020-7-11",
  "Commands": [
    {
      "Command": "times",
      "Target": "100",
      "Value": ""
    },
    {
      "Command": "run",
      "Target": "/macros/macroX",
      "Value": ""
    },
    {
      "Command": "end",
      "Target": "",
      "Value": ""
    },
    {
      "Command": "run",
      "Target": "/macros/macroY",
      "Value": ""
    }
  ]
}

And then loop this macro, right?

Seems ok your code

I do not use run command because in the past show more error with shared variables but you code seems ok

Yeah I’ll probably just do it in one macro, thanks for the help.

Every coder use custom logical to create macro.

I usually create micro macro and run it with a test suite folder.

Micro macro code are fast and with few chances to freeze, error and bug and it’s easy to edit the code.