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

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -