Why does my loop only execute once?

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

Why does my loop only execute once?

by famewolf on Sat Feb 01, 2014 1: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"
famewolf
 
Posts: 8
Joined: Wed Jun 22, 2011 12:39 pm

Return to iMacros for Firefox

Who is online

Users browsing this forum: Bing [Bot], chivracq, Google [Bot], techimac and 8 guests

-->