Two macros are needed to demonstrate the issue. Please read the comments in the macro to see how to run them.
{
"Name": "RUN Command Bug Parent (Play Me!)",
"CreationDate": "2019-5-15",
"Commands": [
{
"Command": "comment",
"Target": "Open the browser console for the extension...",
"Value": ""
},
{
"Command": "store",
"Target": "30",
"Value": "!TIMEOUT_MACRO"
},
{
"Command": "store",
"Target": "0",
"Value": "COUNTER"
},
{
"Command": "open",
"Target": "http://www.google.com",
"Value": ""
},
{
"Command": "while",
"Target": "${COUNTER}<10",
"Value": ""
},
{
"Command": "run",
"Target": "RUN Command Bug Child",
"Value": ""
},
{
"Command": "storeEval",
"Target": "${COUNTER} + 1",
"Value": "COUNTER"
},
{
"Command": "endWhile",
"Target": "",
"Value": ""
}
]
}
{
"Name": "RUN Command Bug Child",
"CreationDate": "2019-5-15",
"Commands": [
{
"Command": "selectWindow",
"Target": "tab=open",
"Value": "https://about.google/intl/en/?fg=1&utm_source=google-US&utm_medium=referral&utm_campaign=hp-header"
},
{
"Command": "storeEval",
"Target": "${COUNTER}+1",
"Value": "COUNTER"
},
{
"Command": "pause",
"Target": "5000",
"Value": ""
},
{
"Command": "comment",
"Target": "First time through, click the stop button while paused in the child.",
"Value": ""
},
{
"Command": "comment",
"Target": "After stopping, return to the parent macro and run again before the 30s timeout expires.",
"Value": ""
},
{
"Command": "comment",
"Target": "Let the macro loop without stopping and watch the console to see the first timeout stop the macro.",
"Value": ""
},
{
"Command": "selectWindow",
"Target": "tab=close",
"Value": ""
}
]
}