Run Macro, Pause for 5 minutes, Resume, Repeat/Loop

I am NOT a programmer. I am a front end developer and I am trying to load test a chat client I installed on a customer’s site.

Unfortunately, I cannot seem to make the macro I created operate properly.

Here is the code.

{
“Name”: “chattest”,
“CreationDate”: “2020-10-15”,
“Commands”: [
{
“Command”: “open”,
“Target”: “SITE”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “id=content”,
“Value”: “”,
“Targets”: [
“id=content”,
“name=content”,
“xpath=//[@id=“content”]",
“xpath=//input[@id=‘content’]”,
“xpath=//input”,
“css=#content”
]
},
{
“Command”: “type”,
“Target”: “id=content”,
“Value”: “TEST TEST TEST”,
“Targets”: [
“id=content”,
“name=content”,
"xpath=//
[@id=“content”]”,
“xpath=//input[@id=‘content’]”,
“xpath=//input”,
“css=#content”
]
},
{
“Command”: “click”,
“Target”: “xpath=//[@id=“submit_button”]/i",
“Value”: “”,
“Targets”: [
"xpath=//
[@id=“submit_button”]/i”,
“xpath=//button/i”,
“css=#submit_button > i”
]
},
{
“Command”: “pause”,
“Target”: “”,
“Value”: “30”
},
{
“Command”: “refresh”,
“Target”: “”,
“Value”: “”
}
]
}

How can I make this run, pause for X minutes, then repeat in an infinite loop?

Just put pause | 300000 (5 min) at the end of your macro and then click play loop

thats what i had tried but the macro just hangs on pause and i have to manually resume it for some reason. is it a glitch?

It’s a problem of your macro code, optimize it and it will work.