How to detect a 404 error page

Share your tips, tricks and favorite iMacros macros, scripts and applications for web automation in general here.
Post Reply
User avatar
Tech Support
Posts: 4947
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

How to detect a 404 error page

Post by Tech Support » Mon Mar 19, 2007 2:01 pm

You can distinguish between an error page created by the web browser or server (e. g. a 404 page) and the real website by looking for a keyword.

This can be done very easily with a TAG command. You create such a TAG command it by simplying "clicking" on any word in your website. This should not be a link, but just some simple text or phrase that is unique to your website.

If the browser shows a 404 page this (key)word is not found and an error is created. For the iOpus.com homepage such a macro would look like this:

Code: Select all

VERSION BUILD=5030127 TAB T=0 TAB CLOSEALLOTHERS URL GOTO=http://www.iopus.com/ TAG POS=1 TYPE=STRONG ATTR=TXT:Record&Replayallrepetitivewebsurfing


If you work with websites that do not contain HTML text, for example Flash- or Java applets, you can use the IMAGESEARCH command for this purpose. For more information about IMAGESEARCH please see

http://www.iopus.com/iim/irp

iOpus Support
Post Reply