How can I do "On Error - Extract URL"

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.

Moderators: Marcia, iOpus, Hannes, iOpus, Tech Support, Tom, iOpus

How can I do "On Error - Extract URL"

Postby Xyon on Mon Jul 26, 2010 6:19 am

I have a script that runs through a lists of sites and completes a task, which works great. I have set it to ignore errors so it will move down and do the entire list, however this means a few sites don't get completed along the way.

Is there a way to get imacros to detect an error, and extract the URL and save it to an external file, so i can see at the end which urls had errors during the runtime. I know there is ADD !EXTRACT {{!URLCURRENT}} but im not sure how to access the file, or how to make it do this when there is a problem with the run time or a step is skipped
Xyon
 
Posts: 1
Joined: Mon Jul 26, 2010 6:16 am

Re: How can I do "On Error - Extract URL"

Postby Tom, iOpus on Fri Jul 30, 2010 5:05 am

Hello Xyon,

You can accomplish this by calling your macro from a script. Then in your script code you can check the iMacros return codes for errors and process them accordingly. To do this you need to use either the iMacros Scripting Edition, or the iMacros for Firefox add-on which supports javascript. See the following for more information and examples:

http://wiki.imacros.net/Web_Scripting
Regards,

Tom, iOpus Support
Tom, iOpus
 
Posts: 445
Joined: Mon May 31, 2010 9:59 am


Return to General Support & Discussions

Who is online

Users browsing this forum: Google [Bot] and 1 guest