Imacros with many conditions

how to create a script with imacros with many conditions? for example:

  1. if it can click, will continue
  2. if it can not click, will return to the specified url

Tried so far:

SET !VAR1 "POS=1 TYPE=SPAN ATTR=TXT:LANJUTKAN<SP>KE<SP>PEMBAYARAN"
SET !VAR2 "URL GOTO=url"
SET !VAR3 EVAL("var d=\"{{TAG POS=1 TYPE=SPAN ATTR=TXT:LANJUTKAN<SP>KE<SP>PEMBAYARAN}}\";
var s=\"{{URL GOTO=url}}\" ;
if ((d!=s)){
  var x = \"TAG POS=1 TYPE=SPAN ATTR=TXT:LANJUTKAN<SP>KE<SP>PEMBAYARAN\";
} else {
  var x=\"URL GOTO=url\";
} x;")

1 answer

  • answered 2018-05-16 19:16 berliner

    It can not be done in iMacros for Chrome (no support for conditinals). The old Firefox iMacros could do what you want but it is gone since Firefox Quantum.

    But does it have to be iMacros? If not, then the Kantu web automation macro recorder is a good open-source imacros alternative. It offers almost the same features as imacros plus the ability to create many conditions.