I've just discovered iMacros. It its great tool that may in future help me with many tasks. But I've found it today as I was looking for some kind of automation tool for one of the websites. It is gov site with some certificates that I have to confirm. There are about 50-100 of them daily. And while I had no idea that I have to do that now I have bit over 12000 of them. Thing about this website is that it lags as hell (sometimes when it has to load next page it needs over 60 seconds to do so - crashing that macro with timeout). But that's not a big deal. What concerns me the most is fact that it tends to crash with 404 error (and it is not automation failure because it also happens when you click it manually). So I've created second macro that goes through that 404 error so I can start another loop of first one to continue with process of clicking.
So here are both of them:
Code: Select all
VERSION BUILD=10101485
TAG POS=3 TYPE=BUTTON ATTR=TXT:Opcje
TAG POS=1 TYPE=A ATTR=TXT:Edycja/Zmiana<SP>statusu
TAG POS=1 TYPE=BUTTON FORM=ID:WasteTransferTransportCardForm ATTR=TXT:Zmień<SP>status
TAG POS=1 TYPE=A ATTR=TXT:Potwierdź<SP>transport
TAG POS=1 TYPE=A ATTR=TXT:Zrealizowane<SP>przejęcie
Code: Select all
VERSION BUILD=10101485
URL GOTO=https://rejestr-bdo.mos.gov.pl/Error/404
TAG POS=1 TYPE=A ATTR=TXT:Powrót<SP>do<SP>strony<SP>głównej
TAG POS=1 TYPE=SPAN ATTR=TXT:Ewidencja<SP>odpadów
TAG POS=1 TYPE=SPAN ATTR=TXT:Karty<SP>przekazania
TAG POS=1 TYPE=SPAN ATTR=TXT:Karty<SP>przekazania<SP>odpadów
TAG POS=1 TYPE=A ATTR=TXT:Transportujący
TAG POS=1 TYPE=A ATTR=TXT:Zrealizowane<SP>przejęcie
Only thing I've seen is to use iimPlay command (viewtopic.php?t=3454) but still no idea how to create that JS file and how to then link it to execute second macro only if after any steps of first one it gets to that 404 page. Any ideas how to fix that so I can not just sit at it all day because it crashes usually after less than 10 loops.