Why does my loop only execute once?

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

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
famewolf
Posts: 8
Joined: Wed Jun 22, 2011 7:39 pm

Why does my loop only execute once?

Post by famewolf » Sat Feb 01, 2014 8:42 pm

Ok I'm sure I'm missing something obvious....I've tried various things which didn't work so finally just going to ask.....the following code goes to a site and clicks the first link that matches the wildcard then submits a form...it then stops.....what it should do is loop back to the original page and process the next link in the loop. What am I missing?

Code: Select all

VERSION BUILD=8601111 RECORDER=FX
TAB T=1
URL GOTO=http://www.somesite.com/
SET !LOOP 1
TAG POS={{!LOOP}} TYPE=A ATTR=HREF:http://www.somesite.com/entry.cgi?id=*
SET !VAR1 {{!URLCURRENT}}
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://www.somesite.com/submit.cgi ATTR=NAME:username CONTENT=someone@somewhere.com	
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://www.somesite.com/submit.cgi ATTR=NAME:realname CONTENT=Someone<SP>Somewhere
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://www.somesite.com/submit.cgi ATTR=*
WAIT SECONDS=10
SAVEAS TYPE=PNG FOLDER=* FILE="{{!VAR1}}.png"
Post Reply