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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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