aisingapore / TagUI

Free RPA tool by AI Singapore
Apache License 2.0
5.67k stars 584 forks source link

有没有 do while 语句 - closest is a big for loop to simulate a while loop #1398

Closed wwwzi1 closed 1 month ago

wwwzi1 commented 1 month ago

do while 语句 要用 JS begin 包起来吗???

要怎么写?

kensoh commented 1 month ago

Can't due to the underlying CasperJS/PhantomJS structure. But you can try doing a big for loop -

for n from 1 to 100
    xxx
    yyy
    wait
    if some condition
        break

But big for loops will be slow.