iMacros shouldnt stop if a site doesnt exist

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
espe
Posts: 3
Joined: Fri May 14, 2010 7:52 am

iMacros shouldnt stop if a site doesnt exist

Post by espe » Fri May 14, 2010 8:09 am

Hellooo :)

ive tryed to make a entry in guestbooks in different profiles.
if a profile is deleted banned or what ever or the guestbook is disabled iMacros stops.
how to say to iMacros "dont stop! go to next profile/command-line" ?
slamsal
Posts: 96
Joined: Fri Sep 12, 2008 4:39 pm

Re: iMacros shouldnt stop if a site doesnt exist

Post by slamsal » Fri May 14, 2010 7:20 pm

use following code

Code: Select all

SET !ERRORIGNORE YES
But if you are using vbscript or other scripting;
iret = iim1.iimPlay("testmacro")
if iret < 0 then
//whatever you want to do
end if
Sanjiv Lamsal
iMacros Consultant
Duluth, MN USA
sanjivlamsal@hotmail.com
espe
Posts: 3
Joined: Fri May 14, 2010 7:52 am

Re: iMacros shouldnt stop if a site doesnt exist

Post by espe » Fri May 14, 2010 8:06 pm

Yeah thank you slamsal but where can I set the error-tag-waiting-time ?
now its 36 seconds and that tooo long for the entrys :(

OR where can I see the parameters ? i am new :(
Attachments
error36s.PNG
error36s.PNG (21.64 KiB) Viewed 2422 times
Daniel, Tech Support
Posts: 1483
Joined: Tue Jan 26, 2010 11:35 am

Re: iMacros shouldnt stop if a site doesnt exist

Post by Daniel, Tech Support » Wed May 19, 2010 1:08 pm

Hello,

Please take a look at these variables:
!TIMEOUT_TAG
!TIMEOUT
!TIMEOUT_MACRO

Best regards,
Daniel, iOpus Support
helenk579
Posts: 1
Joined: Thu Jun 03, 2010 10:36 am

Re: iMacros shouldnt stop if a site doesnt exist

Post by helenk579 » Thu Jun 03, 2010 10:40 am

Daniel, iOpus wrote:Hello,

Please take a look at these variables:
!TIMEOUT_TAG
!TIMEOUT
!TIMEOUT_MACRO

Best regards,
Such a very amazing link!
tommm
Posts: 1
Joined: Thu Jul 22, 2010 10:54 am

Re: iMacros shouldnt stop if a site doesnt exist

Post by tommm » Thu Jul 22, 2010 11:49 am

i set !ERRORIGNORE YES and my macro have to input text into a form. sometimes it works but mostly the macro hangs after the text input. in this case the loading of the site is not finished but the form is visible. the macro now inputs the text into the form as expected. then the loading timeout is finished but the script doesn't go to the next step. i think it has nothing to do with the page-load directly because at another step (at the beginning of the macro) the page sometimes does not load too but after the loading timeout the macro continues as expected.

this is the part where my macro hangs often:

TAB T=1
TAG POS=1 TYPE=TEXTAREA FORM=ACTION:/comment_servlet?add_comment=1&comment_type=V ATTR=NAME:comment CONTENT={{!VAR1}}

any hints?
Daniel, Tech Support
Posts: 1483
Joined: Tue Jan 26, 2010 11:35 am

Re: iMacros shouldnt stop if a site doesnt exist

Post by Daniel, Tech Support » Thu Jul 22, 2010 10:28 pm

Hi,

If the problem is that the page is not fully loaded, but everything that you need is loaded, you can use a following workaround to stop the macro from waiting for the page to fully load:
Set macro to ignore errors, set macro to timeout in a short period of time, then load the page and restore ERRORIGNORE and TIMEOUT back to default values. After that the script continues as if the page has loaded. E.g.

Code: Select all

SET !ERRORIGNORE YES
SET !TIMEOUT 15
URL GOTO=your_url
SET !TIMEOUT 60
SET !ERRORIGNORE NO
...'rest of macro
Best regards,
Daniel, iOpus Support
Post Reply