Hello,
I made a macros scrape that I enter the loop 1-20 but I dont know to made after the loop finish to move to the other macros or to run again .
Hello,
I made a macros scrape that I enter the loop 1-20 but I dont know to made after the loop finish to move to the other macros or to run again .
Use gotoif or if else to move in another part of code
Instead of using LOOP button, use a loop inside the macro e. g. with Do... RepeatWhile
(see macro below)
To run another macro after this macro has finished you have to option:
RUN | nextmacro
(not to be confused with XRUN
!)How to make a loop inside a macro:
{
"Name": "loopinmacro",
"CreationDate": "2020-1-17",
"Commands": [
{
"Command": "store",
"Target": "1",
"Value": "i"
},
{
"Command": "do",
"Target": "",
"Value": ""
},
{
"Command": "echo",
"Target": "Now at loop = ${i}",
"Value": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "return Number ${i} +1",
"Value": "i"
},
{
"Command": "repeatIf",
"Target": "${i} <= 20",
"Value": ""
},
{
"Command": "echo",
"Target": "loop done!",
"Value": ""
}
]
}
Thank you very much , That help me very much
but I get some time error (Error: timeout reached when looking for element ‘id=login-username’, Runtime: 40.32s)
Error: timeout reached when looking for element ‘id=login-username’,
Then this is an error of the website. If you get this error, can you check if the element with ‘id=login-username’ is on the website? Sometimes websites do not load correctly. This is then a website or internet connection issue.