iMacros: EVENT:FAIL_IF_FOUND on !URLCURRENT -
is possible make event:fail_if_found
work on {{!urlcurrent}}
?
e.g, if visit site, , submit something, when things goes wrong, redirected error page, example sample.com/submit?sorry-information-already-in-the-database-239929.html
so, want generate error -990 if "sorry" found in current url.
this don't' work:
tag {{!urlcurrent}} attr=href:sorry content=event:fail_if_found
you can use eval
emit exception:
set !var1 eval("/sorry/.test('{{!urlcurrent}}') && macroerror('wrong page')")
Comments
Post a Comment